Re: .htaccess allow access to one file, deny the rest.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/24/07, Doug Hairfield <doug.hairfield@xxxxxxx> wrote:
>
> Fedora Core 4/apache2.0.59
>
> Is it possible to use an htaccess file to deny access to everything in a
> directory EXCEPT one particular file and allow access to that file via IP
> address?  I have a script that needs to be able to hit
> http://someurl/nagios/cgi-bin/tac.cgi.  I am using the following .htaccess
> file to restrict access to our nagios page to a passwd file but allow access
> to the tac.cgi file.  I can't seem to find an example anywhere for what I am
> doing.

You need
Satisfy Any
See:
http://wiki.apache.org/httpd/BypassAuthenticationOrAuthorizationRequirements

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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux