Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    56
    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:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    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/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nobodyk

    nobodyk Well-Known Member

    Joined:
    Aug 1, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    56
    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:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. nobodyk

    nobodyk Well-Known Member

    Joined:
    Aug 1, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    56
    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:
    56
    Fixed. I had to create an 401.shtml file in the public_html
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice