linux poison RSS
linux poison Email

Apache - limit access to certain directories based on IP address

You can do this completely from /etc/httpd/conf/httpd.conf which are shown below for multiple IP addresses. Note that all 3 setting are the same.

However, the following is different only allows to

Some complete settings in /etc/httpd/conf/httpd.conf

Order allow,deny
Allow from # All 10.
Allow from # All 192.168
Allow from 127 # All 127.

Don’t forget to reload httpd with the following command.

$ /etc/init.d/httpd reload


Post a Comment

Related Posts with Thumbnails