Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    168
    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,798
    Likes Received:
    131
    Trophy Points:
    343
    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:
    168
    That was it! Going to www.domain.com only prompts once.

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice