[thelist] altering httpd.conf

Matt Warden mwarden at gmail.com
Wed Sep 13 09:08:07 CDT 2006

On 9/13/06, Alex Beston <alex.beston at gmail.com> wrote:
> hi evolt
> I currently have in httpd.conf, this:
> <Directory /www/docs/old_client/public_html/>
>    Deny from All
> </Directory>
> but is too broad.
> Is there a way to allow a particular file, say, index.htm and stop
> everything else?

Something like this should work:

SetEnvIf Request_URI "^index\.htm$" good_to_go
<Directory /www/docs/old_client/public_html/>
    Order Deny,Allow
    Deny from all
    Allow from env=good_to_go

Matt Warden
Cleveland, OH, USA

This email proudly and graciously contributes to entropy.

More information about the thelist mailing list