Jump to content

apache LocationMatch


hydrobum

Recommended Posts

Hi,

 

I\'m trying to secure a admin directory /cgi-bin/*/admin/* to ip\'s from the 172.16 ip range using LocationMatch but am having difficulty in implementing it.

 

<LocationMatch \"/cgi-bin/*/admin/*\">

SetHandler server-status

Order deny,allow

Deny from all

Allow from 172.16

</LocationMatch>

 

Do I need the .htaccess file for this to work or what? Clueless here :cry:

 

Thanks!

DC

Link to comment
https://forums.phpfreaks.com/topic/141-apache-locationmatch/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.