Is it possible to allow access to specific URLs only to certain networks? Basically, I would like to restrict access to the admin area only to the local network This area's pages are prefixed by /admin Essentially, I would like all /admin/* to be forbidden from public access.
Can apache handle such a case?
Thanks
UPDATE
Using your suggestions I came up to
<LocationMatch admin> Order allow,deny deny from all Allow From 192.168.11.0/255.255.255.0 </LocationMatch> However, I get 403 even though I am on the network.
Additionally, if I put apache behind haproxy, is this going to work? Because the traffic will be coming from 127.0.0.1 to apache
UPDATE 1
Correct directive is as follows
<LocationMatch admin> Order deny,allow deny from all Allow From 192.168.11 </LocationMatch> However, the problem with the proxy in front of apache is not handled by the above Is there any way to overcome it?
192.168.11.0/24then. But that is identical to192.168.11