Access Apache2

Access Apache2

Access Apache2 version 2.4: allow access to all:

#
require all granted

Allow access to the specific IP addresses:

#
#
require local
require ip 192.168.12.100 192.168.13.100

Allow the spcific domain:

#
require host test.com

Deny all:

#
require all denied

if you change and save any configuration on Apache, you need to restart the service in order to take efect:

#
sudo service apache2 restart
Posted in LINUX.

Leave a Reply

Your email address will not be published. Required fields are marked *