On 10/18/06, Boyle Owen <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to