httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jblack4 <thomas.bl...@accenture.com>
Subject Re: [users@httpd] exclude errorDocument from authentication
Date Tue, 03 Mar 2009 16:51:00 GMT

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@dummy-host.accenture.com
    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@accenture.com>:
>> 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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 

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