Restricted access using Require ip
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 -
AllowOverride None
Require all denied
Require ip x.x.x.x
But it is not restricting access to anyone. Am I doing something wrong here? Please help.
-
I put this in Pre VirtualHost Include, All versions: Options Indexes FollowSymLinks AllowOverride None Require all denied Require ip x.x.x.x
and it seems to work as expected.0 -
Thank you for your quick response. Unfortunately that did not work either. I used to use the old syntax earlier deny from all But recently after the updates it stopped working. Looks like this issue is specific to my server and I may need to open ticket. 0 -
@Yogi Coder - If the details that @quietFinn posted aren't working well for you, could you please open a ticket with our team? Please post the number here so I can follow along and keep this thread updated. 0 -
@cPRex I have opened the ticket. My ticket number is #94416677. 0 -
Thanks for that - I'm following along with that ticket on my end now. 0
Please sign in to leave a comment.
Comments
5 comments