httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Custom error page 401 for reverse proxy
Date Wed, 18 Oct 2006 23:08:26 GMT
On 10/18/06, Boyle Owen <Owen.Boyle@swx.com> wrote:
>
> The *obvious* solution is to use ErrorDocument, but that requires that
> *some* of your webspace is publicly accessible. If you can't host the
> ErrorDocument on the main server, can you host it on another server?
> (remember, you can use "http://some-server/some-doc" in an
> ErrorDocument...)

Actually, for 401 error docs, you can't use an absolute URL.

A common way of dealing with this is to auth-protect your docroot, but
use an Alias to map an unprotected area into the doc space.  For
example:

<Directory /usr/local/apache2/htdocs>
require valid-user
...
</Directory>
ErrorDocument 401 /errors/401.html
Alias /errors /usr/local/apache2/errors
<Directory /usr/local/apache2/errors>
Order deny,allow
Allow from all
</Dirctory>

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