httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] .htaccess allow access to one file, deny the rest.
Date Thu, 25 Oct 2007 17:12:41 GMT
On 10/25/07, Doug Hairfield <doug.hairfield@mac.com> wrote:
>  Thanx, that got me much closer.  Unfortunately that page consists of
> multiple files, .css, .png, .cgi so I tried using this expression in the
> <Files> line, but it is not allowing those files to come through.  From
> firefox, it prompts me for the .htaccess password credentials for the other
> files it seems, if I cancel through them, about 5 times I eventually get the
> page with the data I need to pull without the images.
>
>
> <Directory /usr/local/nagios/sbin/>
>    Options ExecCGI
>    SSLRequireSSL
>    order deny,allow
>    AuthType Basic
>    AuthUserFile /usr/local/nagios/etc/passwd
>    AuthName "nagios"
>    require valid-user
> <Files ~ "\.(css|cgi|png)$">
>    Order Allow,Deny
>    Allow from "An IP"
> </Files>
> Satisfy Any
> </Directory>
>
> With this from the access_log
>
>
> An IP Address5 - - [25/Oct/2007:11:42:26 -0400] "GET /nagios/cgi-bin/tac.cgi
> HTTP/1.1" 200 11705
> An IP Address - - [25/Oct/2007:11:42:26 -0400] "GET
> /nagios/stylesheets/common.css HTTP/1.1" 401 470

It is hard to tell where those requests are mapping. Is nagios/sbin/
the same as /nagios/cgi-bin/ (from the web) or is it just /nagios?

Joshua.

---------------------------------------------------------------------
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