Question
In
bin/.htaccess there is the note:
# The path here must be a URL path, not a file pathname - first part should
# match the $scriptUrlPath in TWiki.cfg
ErrorDocument 401 !URL_path_to_TWiki!/bin/oops/TWiki/TWikiRegistration?template=oopsauth
I have set that to the appropraite URL:
ErrorDocument 401 http://www.infosecwiki.com/bin/oops/TWiki/TWikiRegistration?template=oopsauth
but in my apache logs I get
[Mon Jun 20 21:34:32 2005] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
This seems to contradict the note in
bin/.htaccess
I've tried searching Code but
"401 +url" and a few other strings turns up pages which have not
"401" in the body!
Environment
--
AntonAylward - 21 Jun 2005
Answer
You want to put the absolute path to the error document. See
http://httpd.apache.org/docs-2.0/mod/core.html#errordocument
for a discussion on why
not to use URL's.
--
SteveRJones - 24 Jun 2005
would anyone care to provide a patch for the documentation, please? (the note in
bin/.htaccess)
--
WillNorris - 24 Jun 2005