谢谢远程指导。因自己手动以下配置包含auth_basic,故被判断为已设访问限制。
以下步骤可添加访问设置
1、在网站“配置文件”里,删掉原有auth_basic, auth_basic_user_file
2、使用面板中网站的“添加加密访问”功能,添加想要的设置
3、在网站“配置文件”里,恢复步骤1中删除的auth_basic, auth_basic_user_file
- location ^~ /shop/ {
- alias /www/wwwroot/shop.tokyo-seek.com/;
- try_files $uri $uri/ /shop/index.php?$args;
-
- location ^~ /shop/admin/ {
- auth_basic "Authorization";
- auth_basic_user_file /www/server/pass/xxx.pass;
-
- include enable-php-74-for-alias.conf;
- include server-comm.conf;
- }
- location ~ /shop/system/(storage/session/)* {
- deny all;
- }
-
- include enable-php-74-for-alias.conf;
- include server-comm.conf;
- }
复制代码 |