Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 15 of 15
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Default Password Protect Directories

    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. #2
    Member viraj's Avatar
    Join Date
    Sep 2006
    Location
    India
    Posts
    209
    cPanel/Enkompass Access Level

    DataCenter Provider

    Thumbs up

    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. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Default

    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. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by wwwnz View Post
    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?
    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. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Smile

    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. #6
    Member
    Join Date
    Sep 2002
    Location
    Europe
    Posts
    270

    Default

    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. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by dxer View Post
    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 ?
    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. #8
    Member
    Join Date
    Sep 2002
    Location
    Europe
    Posts
    270

    Default

    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. #9
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by dxer View Post
    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 ?
    Perhaps the .htaccess file controlling that directory is referring to a different .htpasswd file than you expect?

  10. #10
    Member
    Join Date
    Sep 2002
    Location
    Europe
    Posts
    270

    Default

    I don't know. What should I look for exactly ?

  11. #11
    Member
    Join Date
    Nov 2003
    Posts
    332

    Default

    Quote Originally Posted by cPanelDavidG View Post
    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.
    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. #12
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by webstyler View Post
    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
    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. #13
    Member
    Join Date
    Nov 2003
    Posts
    332

    Default

    Quote Originally Posted by cPanelDavidG View Post
    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
    uhm..

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

    ?

    tx
    --

  14. #14
    Member
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    7

    Default 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. #15
    Member
    Join Date
    Nov 2003
    Posts
    332

    Default

    Quote Originally Posted by terijo63 View Post
    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
    uao

    uhm.. how can fancy indexing change auth mode ?

    Tx
    --

Similar Threads & Tags
Similar threads

  1. Replies: 10
    Last Post: 06-24-2010, 12:12 PM
  2. How to password protect several directories
    By lucaskirsch in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-10-2008, 10:15 AM
  3. Password Protect Directories
    By Jump Network in forum Security
    Replies: 2
    Last Post: 07-07-2008, 10:09 AM
  4. Password protect directories
    By bpmod in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-04-2006, 11:46 PM
  5. Password protect directories
    By futuron in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-10-2005, 11:11 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube