The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Error, not sure how to stop it

Discussion in 'General Discussion' started by mattwilks, Nov 13, 2004.

  1. mattwilks

    mattwilks Registered

    Joined:
    Jan 8, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I'm getting the following -

    [Sat Nov 13 12:28:12 2004] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
    [Sat Nov 13 12:28:12 2004] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
    [Sat Nov 13 12:28:13 2004] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
    [Sat Nov 13 12:28:13 2004] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
    [Sat Nov 13 12:28:13 2004] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
    [Sat Nov 13 12:28:13 2004] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
    [Sat Nov 13 12:28:13 2004] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!

    Does anyone know a way to stop this?
     
  2. FWC

    FWC Well-Known Member

    Joined:
    May 13, 2002
    Messages:
    354
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ontario, Canada
    Run this command:

    find /home -name '.htaccess' -printf "\"%p\"\n" | xargs grep '401 http' /dev/null

    That should find the .htaccess file with the full URL in the ErrorDocument directive. Change it to a relative link. For example:

    ErrorDocument 401 /401.shtml
     
  3. procam

    procam Well-Known Member

    Joined:
    Nov 24, 2003
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    find / -name .htaccess -type f -print | xargs grep -e '.*401.*http' /dev/null

    I actually had to reword the search par to the above to work properly~ and be patient this takes a while to parse the results it will appear its dead but its searching the server~
    Youll find em just be patient~

    Once you find em - remove the 401 directive from the file or correct it ~ prob solved~ :D
     
  4. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    Guys, you would like to try this method at first:

    Code:
    for H in `locate .htaccess`; do grep -Hi "401 http" $H; done;
    
    It will be faster as locate database used instead of real filesystem crawl.

    Nice for fast debugs.
     
Loading...

Share This Page