Tags:
create new tag
, view all tags

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

TWiki version: TWikiAlphaRelease
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux Fedora
Web server: Apache 2.0.52
Perl version: 5.8.5
Client OS:  
Web Browser:  
Categories: Htaccess

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

 
Topic revision: r3 - 2005-06-24 - WillNorris
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.