2013/10/31

Apache2 directory access right on ubuntu 12.04

Objective
1. Forbid others to browse folder in my web server

I don't know why the default configuration of the apache2 allows others to browse your directory contents. For security reasons, I am going to turn this feature off. As a result, others will get a 403 if they are trying to access my web directory.

Step
1. Modify /etc/apache2/sites-available/default
Delete the indexes in the Options under directory /var/www/

2. Restart your apache2

3. Done


Reference
https://help.ubuntu.com/12.04/serverguide/httpd.html#http-configuration

沒有留言:

張貼留言