Perfect Tips About How To Prevent Directory Listing In Apache
Do not forget to run the below command in order for changes to go into effect:
How to prevent directory listing in apache. Go to the top web. Save your changes to the file. This is how directory listing will be shown to your visitors when index.html not present in it.
Usually apache comes with this feature enabled but its always a good idea. One of the “must do’s” on setting a secure apache web server is to disable directory browsing. To disable directory listing, we need to switch the value of the autoindex to off.