Organizational Research By

Surprising Reserch Topic

Question:Giving Apache access to the file system:


It is prudent to limit Apache's view of the file system to only those directories necessary. This is done with the directory statement. Start by denying access to everything, then grant access to the necessary directories.

Deny access completely to file system root ("/") as the default:

Deny first, then grant permissions:
1 <Directory />
2    Options None
3    AllowOverride None
4 Directory>


Set default location of system web pages and allow access: (Red Hat/Fedora/CentOS)
1 DocumentRoot "/var/www/html"
3 <Directory "/var/www/html">
4    Options Indexes FollowSymLinks
5    AllowOverride None
6    Order allow,deny
7    Allow from all
8 Directory>


asked Sep 13, 2013 in LINUX by anonymous
edited Sep 12, 2013
0 votes

Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.