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!

password protected directory not working in nginx reverse proxy

Discussion in 'General Discussion' started by linux-tech, Jul 7, 2016.

Tags:
  1. linux-tech

    linux-tech Member

    Joined:
    Jun 15, 2016
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    cPanel Access Level:
    Root Administrator
    I wish to protect my public_html directory from public. I have tried password protected directory option in cPanel but it doesn't work. I believe it is due to nginx is setup as reverse proxy. Can somebody suggest a way to achieve this.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,266
    Likes Received:
    1,941
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you let us know the specific entries added to the .htaccess file within the account's public_html directory? Also, have you verified the domain name resolves to the cPanel server?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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