Home > Topics > Pagoda Panel > body text

Website settings authentication in nginx of Pagoda

藏色散人
Release: 2021-03-22 17:28:20
forward
2379 people have browsed it

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

Website settings authentication in nginx of Pagoda

Step one:

Generate username and password (must be executed in SSH)

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

Step two:

Add the following two lines in pseudo-static

auth_basic 'Login..';
auth_basic_user_file /www/wwwroot/AuthNginx.pl;
Copy after login

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

Related labels:
source:bt.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template