Re: turn off basic authentication for one file

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

 



Jake Garfield wrote:
Please forgive me if this is a dumb question, but is there a way to turn off basic authentication for ONE file?  I suppose there is some type of .htaccess syntax for that. How would I do that?

I don't think it is a dumb question, because authentication tends to be "sticky", and there are no directives like
AuthType None
or
Require None
or
Satisfy nothing

If you authentication is not set at the document root level ("/"), then you could try the following or some variation :

Alias /secure/my_file.html /var/www/htdocs/free/my_file.html

<Location /secure>
  (authentication)
...
</Location>

<Directory /var/www/htdocs/free>
(no authentication)
Allow from all
</Directory>



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