1. Navigate to your Apache config file (httpd.conf)
2. Edit the config file vi httpd.conf or /etc/apache2/sites-enabled# vi 000-default
Search for the directory section of the file where your website resides, and the Options keyword beneath that. It should look something like:
Options Indexes Update the option 'Indexes' from the above, so the line would read instead:
Options -Indexes
2. Edit the config file vi httpd.conf or /etc/apache2/sites-enabled# vi 000-default
Search for the directory section of the file where your website resides, and the Options keyword beneath that. It should look something like:
Options Indexes
Options -Indexes
No comments:
Post a Comment