Actually, I don't know how to password protect one Directory or URL on this panel so anyone knows it?
Server Type: NGINX @aaPanel_Jose
Subdirectory setting password protection We consider joining the development list
the same problem , i need to protect one subdirectory on nginx , but the panel makes password for the entire domain
mostafa26 yes, I tried so many times but it's failed, but I think Nginx expert may know it well, using .htpasswd to protect directories. However, I need the correct methods to use it on aaPanel.
i wish aapanel to add one directory protect by password on nginx . in apache i can make this even manually by htaccess
mostafa26 I also do it on apache server but Nginx it's failed, do you know any example on the Nginx manual method?
follow this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-basic-http-authentication-with-nginx-on-centos-7
jazz1611 Finally it's worked and do you know any Nginx firewall tricks on this panel?
aaPanel_Jose oh great news and plz improve package installation speed because it's taking too much time to install PHP packages and Nginx (already 10 servers have the same problem including google, digital ocean, scaleway, and OVH) 😀
What system is your slow installation machine? What is the server performance?
auth_basic "Password Protected Area";
And there a .htpasswd file:
When I enter www.example.com/panel/admin/ is asking me for a password (so far so good)
When I enter www.example.com/panel/admin/index.php you can enter with no password!
any solution??? 😃
aaPanel_Jose Probably new PHP version installation and update cause too much time and sometime Nginx version change also take too much time. When I restart my server, it's work well.