Created
April 11, 2012 01:48
-
-
Save 40/2356290 to your computer and use it in GitHub Desktop.
Prevent Directory Listing on Apache2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Find sites-available directory | |
| # Open default dir | |
| # Locate something like <Directory /[some directory name]> | |
| # Change "Indexes" to "-Indexes" | |
| :wq | |
| service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment