i wish aapanel to add one directory protect by password on nginx . in apache i can make this even manually by htaccess

    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.

    mostafa26 I also do it on apache server but Nginx it's failed, do you know any example on the Nginx manual method?

      jazz1611 Finally it's worked and do you know any Nginx firewall tricks on this panel?

      5 days later

      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) πŸ˜€

        Try:

        nginx configuration

        auth_basic "Password Protected Area";
        auth_basic_user_file /path/to/.htpasswd;

        And there a .htpasswd file:
        test:mysuperpassword

          shayen
          hello,
          What system is your slow installation machine? What is the server performance?

            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.

            Stealth
            Hello,
            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??? πŸ˜ƒ

            9 days later

            aaPanel_Jose Hello,
            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??? πŸ˜ƒ

            4 years later