hirohitosan Posted May 16, 2007 Report Share Posted May 16, 2007 Hi there. How can I configure Apache web server to show the directory tree? Now, when I access my server to read the files the following error occur: Access forbidden! You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster. Error 403 Quote Link to comment Share on other sites More sharing options...
scarecrow Posted May 16, 2007 Report Share Posted May 16, 2007 Which directory tree? The root directory for Apache is regularly the one starting from the /htdocs directory. Quote Link to comment Share on other sites More sharing options...
Soka Posted May 17, 2007 Report Share Posted May 17, 2007 You have to add the Indexes option in your httpd.conf file for the directory you want to list the files. You may also want to add some indexes options to get a better listing (long file names, folders appearing first, etc) <Directory /var/www/directory_to_view> Options Indexes FollowSymLinks IndexOptions NameWidth=* FoldersFirst </Directory> Quote Link to comment Share on other sites More sharing options...
aioshin Posted May 17, 2007 Report Share Posted May 17, 2007 try to check if apache owned the said directory.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.