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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...