httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frederik Vanderstraeten <frederik_vanderstrae...@yahoo.co.uk>
Subject [users@httpd] .htaccess: denying access using advanced rules
Date Sun, 14 Jan 2007 16:37:57 GMT
Hi,

I'm new to .htaccess. I'd like to do the following:
I'd like to disallow all requests for all files and subdirectories in a
certain directory, except for the index file (index.pl) for that one
directory (not for the subdirectories). I'd also prefer if the index.pl
file could still be accessed as the directory index.
Also, that file should only be accessible if HTTP request header
X-Client has a value of MW.
I don't understand how to accomplish this.

Thanks,
Frederik Vanderstraeten

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message