Search This Blog

Thursday, November 15, 2018

How to turn off directory listing in Apache 2

In httpd.conf,

find a line like this:

Options Indexes FollowSymLinks

Get rid of Indexes, So like this:

Options FollowSymLinks

Restart httpd.