Jump to content

about httpd


hirohitosan
 Share

Recommended Posts

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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...