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.

HTTP Authentication Box Prompts Twice

Discussion in 'General Discussion' started by jonwatson, Apr 27, 2007.

  1. jonwatson

    jonwatson Well-Known Member

    Joined:
    Apr 1, 2007
    Messages:
    101
    Likes Received:
    1
    Trophy Points:
    16
    Hello,

    This isn't a cPanel problem per se, but this is the first time I've set up basic http authentication in cPanel vice the command line and the first time I've seen this behaviour. I'm wondering if I've missed something cPanel-esque.

    When accessing all of my password protected directories, I am prompted to log in twice. It's very consistent - two login prompts and then I'm in.

    I thought that I might be access a directory that had two .htaccess files in it's path somewhere, but I've verified that this is not the case. There is only one .htaccess file requiring authentication in the path and it resides in the final directory I am attempting to access.

    The apache logs are no help (in fact they're empty - where does WHM log??).

    Does anyone know why this might be happening or where I can look for more information on troubleshooting this?

    Thanks!
     
  2. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Are you going to http://domain.com/passworddirectory or http://www.domain.com/passworddirectory?

    I believe when you go to http://domain.com/passworddirectory you enter the username and password, then you get redirected to http://www.domain.com/passworddirectory, which because this is a different hostname, your browser will again prompt you for a username and password.
     
  3. jonwatson

    jonwatson Well-Known Member

    Joined:
    Apr 1, 2007
    Messages:
    101
    Likes Received:
    1
    Trophy Points:
    16
    That was it! Going to www.domain.com only prompts once.

    I never would have figured that out. Thanks!
     
Loading...

Share This Page