I have been trying to use apache 2.4 directives for restricting access to my site to a particular IP with no luck so far.
I am using following syntax in the pre_vhost_global file -
<Directory /home/user/directory/subfolder>
AllowOverride None
Require all denied
Require ip x.x.x.x
</Directory>
But it is not restricting access to anyone. Am I doing something wrong here? Please help.
I am using following syntax in the pre_vhost_global file -
<Directory /home/user/directory/subfolder>
AllowOverride None
Require all denied
Require ip x.x.x.x
</Directory>
But it is not restricting access to anyone. Am I doing something wrong here? Please help.