Apache sets the directory to disable access

  • 2020-05-10 23:18:24
  • OfStack

The default apache entry displays the directory without index.html in the current directory. It is very dangerous to leave the directory exposed. apache is not allowed to display the directory as follows:
Go to apache's configuration file httpd.conf and find:
Options Indexes FollowSymLinks
Is amended as:
Options FollowSymLinks

Indexes means that if there is no index.html in the current directory, the directory structure will be displayed.

Very simple!


Related articles: