Home  >  Article  >  Topics  >  Website settings authentication in nginx of Pagoda Panel

Website settings authentication in nginx of Pagoda Panel

藏色散人
藏色散人forward
2021-02-24 16:44:402654browse

The following tutorial column of Pagoda will introduce to you the website setting authentication method in nginx of Pagoda panel. I hope it will be helpful to friends in need!

Website settings authentication in nginx of Pagoda Panel

Step one: Generate username and password (must be executed in SSH)

echo -e "用户名:$(openssl passwd -crypt 密码)" > /www/wwwroot/AuthNginx.pl

Step two: Add the following in pseudo-static Two lines

auth_basic 'Login..';
auth_basic_user_file /www/wwwroot/AuthNginx.pl;

The above is the detailed content of Website settings authentication in nginx of Pagoda Panel. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:bt.cn. If there is any infringement, please contact admin@php.cn delete