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.

password protected dirs ask for password several times

Discussion in 'General Discussion' started by mumbles27, Jun 2, 2009.

  1. mumbles27

    mumbles27 Active Member

    Joined:
    Aug 22, 2006
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    England
    Dear Forum..


    i have some password protected dirs on my domain, but when i ask people to log into them, the system asks for the password lots of times.

    i have checked, the information being entered is correct first time, it just repeats the dialog asking for the login and password several times. Sometimes it wont let people in period. i have double triple checked the details and i have also cut and pasted from an email i sent, tried it on 3 or 4 computers, some login, some dont, some ask for password more than once.

    any ideas? anything i need to look out for? could this be a host server issue rather than a cpanel issue? or is there an issue i need to be aware of?
     
  2. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
    This usually happens when you have multiple entries in the .htaccess or multiple .htaccess files with the password protection. Check the contents of them and make sure there is only one.
     
  3. mumbles27

    mumbles27 Active Member

    Joined:
    Aug 22, 2006
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    England
    had a quick look at the .htacess file that is sat in my dir, what am i looking for?

    it was set using cpanel and not written in by hand. does that make a difference

    actually i have just found the passwd file. this obviously contains the scrambled password, but if i have my dir structure:

    www.domain.com/firstdir/seconddir

    and i have a passwd file in the www.domain.com/firstdir/ and the www.domain.com/seconddir/, would this mean i have to enter the login details i set twice?

    i hope that made sense...
     
  4. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    Directory only should ask for the password which you have set up as a password protect directory.
     
  5. mumbles27

    mumbles27 Active Member

    Joined:
    Aug 22, 2006
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    England
    i have now moved hosts, and on my new host i have hosted a page behind password protected dir, set in cpanel via "Password Protect Directories", and it is stll asking people for the username and password more than once..???
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:

    If you are linking to images or files from one of those directories in the other, that might be causing the problem.

    To test, remove the pass protection on one of the directories. Does it ask for the password twice, still?
     
  7. mumbles27

    mumbles27 Active Member

    Joined:
    Aug 22, 2006
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    England
    I have links out of the locked area to a non locked area, css, images, etc... but no other links to locked areas?
     
  8. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    If you have any mod_rewrite or internal virtualhost redirection,
    you will be asked the authorization for each redirection.

    If you call the login from within an iframe, you will also be
    prompted multiple times to login typically.
     
  9. mumbles27

    mumbles27 Active Member

    Joined:
    Aug 22, 2006
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    England
    does that mean a sub domain or a redirection, or both?

    and whats an iframe?
     
Loading...

Share This Page