Re: [users@httpd] Custom error page 401 for reverse proxy

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

 



On 10/18/06, Boyle Owen <Owen.Boyle@xxxxxxx> 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@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