You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by th...@accenture.com on 2009/03/02 17:01:43 UTC
[users@httpd] exclude errorDocument from authentication
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?
Jeff Black
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Re: [users@httpd] exclude errorDocument from authentication
Posted by jblack4 <th...@accenture.com>.
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 <th...@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
Re: [users@httpd] exclude errorDocument from authentication
Posted by Bob Ionescu <bo...@googlemail.com>.
2009/3/2 <th...@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