Use Location for paths respective to the server root.

<Location /cgi-bin>
   ...
</Location>


----- Original Message -----
From: "Ron Savage" <[EMAIL PROTECTED]>
To: "mod_perl" <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 9:23 PM
Subject: Q: How to I secure /cgi-bin?


> Test env:
> Apache/1.3.20 (Win32) mod_perl/1.25_01-dev mod_ssl/2.8.4 OpenSSL/0.9.6a
>
> I just tried this to stop myself running any scripts from /cgi-bin, but it
does not stop me. Yeah, yeah, I restart the server after
> every patch to httpd.conf.
>
> <Directory /cgi-bin>
>     Options Indexes FollowSymLinks MultiViews
>     Order allow,deny
>  Deny from all
>     Allow from 127.0.0.1
> </Directory>
>
> My aim of course is to use
>     Order deny,allow
> to stop all others!
>
> I tried
> <Directory "/cgi-bin">
> and
>     Allow from 128.0.0.1
> just to see what would happen, but that did not stop me either.
>
> Cheers
> Ron  Savage
> [EMAIL PROTECTED]
> http://savage.net.au/index.html
>
>

Reply via email to