Re: exclude errorDocument from authentication

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

 



This does not seem to work for some reason.  I tried putting the override
<location> section above, then below the authenticated <location> section,
but always got the standard 401 page versus the custom register.html page.

It also appeared that maybe the proxy configuration of one location is being
applied to both.  Is this possible?

<VirtualHost *:80>
    ServerAdmin webmaster@xxxxxxxxxxxxxxxxxxxxxxxx
    DocumentRoot "D:/java/Apache2.2-file/htdocs"
    ServerName dummy-host.accenture.com
    ServerAlias www.dummy-host.accenture.com
    ErrorLog "logs/dummy-host.accenture.com-error.log"
    CustomLog "logs/dummy-host.accenture.com-access.log" common

    <Location / >
       Options None
       Order allow,deny
       Allow from all
       
       AuthName            "Network Login"
       AuthType            Digest
       
       AuthDigestProvider file
       AuthUserFile	D:/java/Apache2.2-file/conf/.htdigest
       
       Require valid-user

       ProxyPass http://localhost:8080/
       ProxyPassreverse http://localhost:8080/
   </Location>

    <Location /register.html >
       Order deny,allow
       Allow from all
       Satisfy Any
   </Location>       
   
</VirtualHost>




Bob Ionescu wrote:
> 
> 2009/3/2  <thomas.black@xxxxxxxxxxxxx>:
>> Given that I have a root “<location />” locked down with authentication
>> and
>> that I want a custom "ErrorDocument 401 /register.html", how can I
>> exclude
>> the /register.html page from the authentication location pattern?
> 
> You can to override the setting with another location section:
> 
> <Location />
>     ....
> </Location>
> 
> <Location /register.html>
>     Order deny,allow
>     Allow from all
>     Satisfy any
> </Location>
> 
> 
> Bob
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/exclude-errorDocument-from-authentication-tp22255632p22312792.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


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