Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default cannot use a full or relative URL in a 401 - how to fix this or not have it write

    I get thousands of these that just take up space on the apache error file.

    If nothing else it takes disk resource, is there a way to ignore this error or find where the error is to fix it?

    cannot use a full or relative URL in a 401 ErrorDocument directive --- ignoring!

    As you can see it never shows what page/domain is causing the error.

    Thanks

  2. #2
    Member
    Join Date
    Sep 2002
    Posts
    282

    Default Re: cannot use a full or relative URL in a 401 - how to fix this or not have it write

    Originally posted by DWHS.net
    I get thousands of these that just take up space on the apache error file.

    If nothing else it takes disk resource, is there a way to ignore this error or find where the error is to fix it?

    cannot use a full or relative URL in a 401 ErrorDocument directive --- ignoring!

    As you can see it never shows what page/domain is causing the error.

    Thanks
    it means the 401 customerror needs special handling and shouldn't just be treated as a 403 under another name
    the http spec has more details about why the 401 cannot be an absolute path

    http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
    because the 401 error is parth of the auth process, it needs to be more complex(and isn't normally seen by users) they normally see the 403 that happens when they mess up the username, not the 401 that asks them for one... except in very special cases(like wget, I believe, and even then, wget doesn't see the page, just the error code)

    http://httpd.apache.org/docs/mod/cor...#errordocument
    and
    http://httpd.apache.org/docs/custom-error.html
    have more details about errordocuments

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default

    Is there any way to find the pages causing this error and fix them?

    Maybe a find command or a script?

    Or can I tell apache that it's alright to have this this?

    Thanks, Charles

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default

    I found it thanks:

    find . -name ".htaccess" -type f -print | xargs grep -e '.*401.*http' /dev/null

Similar Threads & Tags
Similar threads

  1. cannot use a full URL in a 401
    By thewebhosting in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-29-2008, 03:48 PM
  2. FIX: URL login with Window$
    By yufool in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 02-25-2004, 01:10 PM
  3. Replies: 2
    Last Post: 11-14-2003, 08:43 PM
  4. [notice] cannot use a full URL in a 401 ErrorDocument direct
    By WildWayz in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-27-2002, 04:56 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube