Disable Apache Root Access

In this tutorial I will show you how to disable Apache root access, the first page which you should always not show.

Disable Apache Root Access

Add Restrictions to Apache Config

vi /etc/httpd/conf/httpd.conf


<Directory />
Options None
Order deny,allow
Deny from all


Then restart the httpd service by running below command

service httpd restart

In RHEL 7.0

systemctle start httpd

Subscribe to
for video tutorials updates