I'm using Apache Reverse Proxy
, following is some of Apache Virtual Host
configuration:
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
ProxyVia On
ProxyRequests Off
ProxyPreserveHost On
proxyPass / ajp://127.0.0.1:8009/
Now I want to restrict request url
like http://example.com/admin/tools
in such a way that
it should allow to access from particular IP address
only. How can I achieve this ?
EDIT:
As of above requirement this answer is working fine, Suppose I want allow to access admin
URL from one or two IP's
and rest IP's
I want to redirect to index
page instead of showing forbidden error
, how can I get this ?