Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jun 2005
    Posts
    363

    Default question about "password protect directories"

    There is one function called "password protect directories" in cpanel. I wonder if i can use this function to set double/multi username/password for one folder. I.e, i want to use password to protect a.com/admin. I set up two pairs of username/password. One is user1/pass1, the other is user2/pass2. Now if i want to open a.com/admin, i should input both of above username/password. First time, i should input user1/pass1, after this, i should input user2/pass2. Is this possible? If i can not do it through cpanel, could i modify the .htaccess file to do this?

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    This feature merely adds the relevant details to a .htaccess and .htpasswd files i.e. it is a convenient interface for Apache's standard HTTP authentication.

    I don't believe that .htaccess/.htpasswd authentication can apply multiple usernames/passwords in the way you describe. You can certainly add more than one set of authentication details, however this would only mean that you could use one set or the other and not mean that you have to use both.

    You might be better off checking the Apache docs to be on the safe side.

  3. #3
    Member
    Join Date
    Jun 2005
    Posts
    363

    Default

    I see. Thanks!

Similar Threads & Tags
Similar threads

  1. Add "delete list" button in WHM on "Reset a Mailman Password" page
    By cPanelMary in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 01-08-2011, 12:19 AM
  2. "Password Protect Directories" - forced to login twice?
    By dlevens in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-01-2007, 04:47 AM
  3. problem with "Password protect directories"
    By ljwhite in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 04-25-2006, 02:25 AM
  4. Password Protect Directories... Question
    By opanime in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-14-2004, 08:05 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube