Bug 17866 - Bogus: "cannot use a full URL in a 401 ErrorDocument directive" ?
Summary: Bogus: "cannot use a full URL in a 401 ErrorDocument directive" ?
Alias: None
Product: Apache httpd-1.3
Classification: Unclassified
Component: core (show other bugs)
Version: 1.3.26
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Keywords: ErrorMessage
Depends on:
Reported: 2003-03-11 11:00 UTC by Purodha Blissenbach
Modified: 2004-11-16 19:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Purodha Blissenbach 2003-03-11 11:00:25 UTC
Either of:

ErrorDocument 401 2003.php
ErrorDocument 401 x2003.php

in an .htaccess file in the / of a virtual server produces the error message:

[Tue Mar 11 00:13:50 2003] [notice] cannot use a full URL in a 401 
ErrorDocument directive --- ignoring!

for each access to any URL of the virtual Server. Commenting "ErrorDocument" 
out stops the error messages, as does this directive:

ErrorDocument 401 /2003.php

Apparently, "ErrorDocument 403", and 404, work fine without "/".

This behaviour exists in the most recent Apache 1.3 that I have access to, and 
I was unable to find anything related in the bug data base. I may err since its 
query form was partially incomprehensible for me.
Comment 1 Jim Jagielski 2003-04-08 15:21:09 UTC
The log entry was incorrect... you cannot use full URLs (http:...) or relative URLs. This will 
be fixed in 1.3.28