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 Protect Directories

Discussion in 'General Discussion' started by wwwnz, Mar 11, 2008.

  1. wwwnz

    wwwnz Registered

    Joined:
    Mar 11, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I have set up a password protect directory, but the Username/Password input box needs to be filled in twice for it to work - is there any way to rectify this problem?
     
  2. viraj

    viraj Well-Known Member

    Joined:
    Sep 28, 2006
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    You'd need to check the permissions/ownerships on the file .htaccess & other related files. Also, can you post the exact contents of the .htaccess file ?
     
  3. wwwnz

    wwwnz Registered

    Joined:
    Mar 11, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I am sorry, but I have very limited knowledge in this and have gone through the cpanel to try to work out what you have suggested I do, but am completely in the dark.

    Can you please explain for the complete novice how I should go about what you have suggested?

    Thanks
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Be careful how you link to password protected directories. Try visiting your passworded page with www. and without www. Note which way only displays the prompt once and link to that.
     
  5. wwwnz

    wwwnz Registered

    Joined:
    Mar 11, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    WOW!! Followed your advice and the problem is resolved - so simple!!

    I agonized for days trying to work out what the other advice I received not realizing the problem could be solved so quickly and easily.

    Thanks a million for your help!!
     
  6. dxer

    dxer Well-Known Member

    Joined:
    Sep 9, 2002
    Messages:
    295
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Europe
    I have the problem accessing password protected area. I have created user and password but this is not working. I am not able to access. I tried several times to change user and password in cpanel but I am unable to access everytime. So it seems it is not working at all.

    Any advice ?
     
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Have you tried entering the same correct user credentials twice in a row to ensure the problem you are experiencing is not the same as the problem discussed above?
     
  8. dxer

    dxer Well-Known Member

    Joined:
    Sep 9, 2002
    Messages:
    295
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Europe
    Yes, I have tried everything, and finally page is displayed I think saying something like Unauthorize access or so.

    I am copying data so there is now way to input wrong data. I tried to approach website with www and without.

    Any further ideas why this does not work ?
     
  9. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Perhaps the .htaccess file controlling that directory is referring to a different .htpasswd file than you expect?
     
  10. dxer

    dxer Well-Known Member

    Joined:
    Sep 9, 2002
    Messages:
    295
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Europe
    I don't know. What should I look for exactly ?
     
  11. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    We have same problem +/- after transfer domain to new server

    Now if we open http//mydomain.com/autharea is all ok
    But if we open http//www.mydomain.com/autharea required is twice ..

    why this ? and how to solve ?

    Tx
     
  12. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    That is (in a simplified explanation) because http://www.mydomain.com/autharea is prompting for the password, then redirects you to http://mydomain.com/autharea. However, the credentials for www.mydomain.com cannot be used by mydomain.com (IIRC, that is in the RFC) therefore you are prompted again for a password, but this time for http://mydomain.com/autharea
     
  13. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    uhm.. :)

    Ok, but why this happen only after transfer to new server ? In old server (same WHM/Cpanel release) don't happen

    ?

    tx
     
  14. terijo63

    terijo63 Member

    Joined:
    Apr 9, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Michigan
    Password Protect Directories Problems

    I was having the same problem, SORT of. Taking off the www for a directory that had already been set up worked fine.

    The one I was CREATING refused to work. So I compared the two .htacess files. The one that worked had fancy indexing turned on.

    So, I turned on fancy indexing on the new directory, and it works. I just don't know WHY that makes a difference. So if you are still having troubles try that.


    Teri Stricker
    WebSlingers Web Development
     
  15. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    uao

    uhm.. how can fancy indexing change auth mode ?

    Tx
     
Loading...

Share This Page