Results 1 to 5 of 5
I have my website up and running no problem with Apache. I must be confused on setting up file/directory permissions however. I want to restrict users from accessing directory listings ...
- 12-04-2007 #1Just Joined!
- Join Date
- Dec 2007
- Posts
- 3
Simple question on directory listings
I have my website up and running no problem with Apache. I must be confused on setting up file/directory permissions however. I want to restrict users from accessing directory listings on the server. I've read all I can find about setting permissions on directories in Linux and tried various combinations. I can't seem to be able to block people from getting directory listings without also denying the web server from accessing files in the directory.
Can anyone give me a tip on this?
thanks much
- 12-04-2007 #2
- 12-04-2007 #3Just Joined!
- Join Date
- Dec 2007
- Posts
- 3
thanks for the reply, but...
thanks for the reply but I need to explain the problem better.
People coming to my web site can see my directory listings by typing a path. Something like www.mywebsite.com/sub-directory/
I want the web server to post a "Access denied" message but right now it just posts a list of all the files in the directory.
I don't know how to set permissions to make this happen.
- 12-04-2007 #4
- 12-04-2007 #5Just Joined!
- Join Date
- Dec 2007
- Posts
- 3
you are right on
Thanks for the suggestion. You are right. This is an apache issue, not Linux. I'm tracing it down now and as you have said it involves either .htaccess or httpd.conf or both.
Much obliged.


Reply With Quote
