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.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page