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.

cpanel pw directories not working

Discussion in 'Security' started by nobodyk, Mar 27, 2011.

  1. nobodyk

    nobodyk Well-Known Member

    Joined:
    Aug 1, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    So I password protected a directory and created a user. When I access the url the login box pops up, but when I cancel it takes me to the page. Is this how is suppose to work? or am I missing something?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    No, you should see some sort of message similar to this:

    Where is the directory located exactly? public_html/privatedir/ or is it deeper like public_html/1/2/46/39/privatedir/
     
  3. nobodyk

    nobodyk Well-Known Member

    Joined:
    Aug 1, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    It's located /home/username/public_html/protected

    I do not see that message when I click on cancel. It takes me right in.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Easiest answer might be to remove the pass protection and re add it. To troubleshoot and see if anything changes.
     
  5. nobodyk

    nobodyk Well-Known Member

    Joined:
    Aug 1, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    hmm...that didn't work.
    here's the .htaccess
     
  6. nobodyk

    nobodyk Well-Known Member

    Joined:
    Aug 1, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Fixed. I had to create an 401.shtml file in the public_html
     
Loading...

Share This Page