Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache LocationMatch

Status
Not open for further replies.

hydrobum

Programmer
Feb 10, 2003
4
US
Hi all,

I'm trying to secure a site after /cgi-bin/*/admin/* using LocationMatch so basically link with the "admin" directory needs to be protected ie.

<LocationMatch &quot;/cgi-bin/*/admin/*&quot;>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 172.16
</LocationMatch>

I can't seem to get this working. Do I need the .htaccess files or can I just configure it in there httpd.conf??

Thanks
Dennis
 
no errors from apache besides
Apache/1.3.27 (Unix) configured -- resuming normal operations
Accept mutex: sysvsem (Default: sysvsem)

:(
 
seems like it does not like multiple /* so if I just use /cgi-bin/* it seems to work but then when I try access a html page /cgi-bin/test/index.html, it takes me to this &quot;Apache Server Status for mymachinename&quot; and spits out this current/restart/uptime times and PID.

I guess it's getting somewhere but not where I want it to go. Any more ideas?

Thanks!
 
nevermind that msg. I had the server-status sethandler on.
DOH! It still doesn't like multiple /* although this should work just fine.

Thanks for da help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top