• Help fixing apache directory listings
    1 replies, posted
I have always run Apache 2.2 without issues when my DocumentRoot was on my C:/ drive. The other day, I moved my DocumentRoot to my G:/ drive (However Apache 2.2 is still installed on C:/), and apache's directory listing breaks, as does the fetching of materials that are referenced through symbolic links. When trying to access any directory in my DocumentRoot with this setup, I am presented with a "Forbidden - You do not have permission to access <folder> on this server.". This problem is not replicable when using a DocumentRoot on the C:/ drive, so I assume this is some sort of problem with the DocumentRoot being an alternate drive. Here are some examples of the problem using files and folders on my web server: You can access the files directly without a problem: [url]http://davykitty.co.uk/test_folder/test_file.txt[/url] [url]http://davykitty.co.uk/test_folder/test_file_2.txt[/url] [url]http://davykitty.co.uk/test_folder/test_sub_folder/test_file.txt[/url] But trying to access either of the directories results in an error: [url]http://davykitty.co.uk/test_folder/[/url] [url]http://davykitty.co.uk/test_folder/test_sub_folder/[/url] The correct permissions are set in httpd.conf. And, again, everything works perfectly if I change my DocumentRoot to C:/ or C:/web/ or anything on the C:/ drive. If anyone knows of a fix or workaround, that would be great. I'd be willing to try solutions and post results, too, until we find a solution. Hopefully this will help other people who may be having a similar problem.
It works fine for me. If you're trying to access the files from the local network and have something like mod_security running, it can cause problems. Check your log files, they'll tell you whats going on.
Sorry, you need to Log In to post a reply to this thread.