looha发表在 Linux面板2024-3-16 00:56 [复制链接] 1 1168
面板、插件版本:面板:国际版 [url=]6.8.35,国内版:8.3.5 nginx 1.2.4[/url]
系统版本:centos 9
问题描述:添加了访问限制,加密访问后,输入正确密码显示404
相关截图(日志、错误):网站为静态博客[img]blob:https://www.bt.cn/fbc20a1c-4578-44e5-8488-a9fb92327baf[/img]端口在6123,端口6123做了反代,代码如下#PROXY-START/location ^~ / { proxy_pass http://127.0.0.1:6123; proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade;}location ~ ^/(ws|terminal/.+)$ { proxy_pass http://127.0.0.1: 6123; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $http_host;}#PROXY-END/前台访问目录为网站根目录pubic[img]blob:https://www.bt.cn/eb89e56a-471f-4427-89ca-09976f1c9908[/img]加密目录为/tags/和/tags/linux/[img]blob:https://www.bt.cn/72a4ceab-abac-41d6-b2ef-59d3497db567[/img]前台通过访问www.blog.xxx.com/tags/和/tags/linux/下静态网页,/tags/和/tags/linux/ 真实路径为网站根目录下/public/tags和/public/tags/linux但是添加了加密访问后,输入正确的账号和密码,返回404,已确认密码没有问题
网站为静态博客
[img]blob:https://www.bt.cn/fbc20a1c-4578-44e5-8488-a9fb92327baf[/img]
端口在6123,端口6123做了反代,代码如下
#PROXY-START/location ^~ / { proxy_pass http://127.0.0.1:6123; proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade;}location ~ ^/(ws|terminal/.+)$ { proxy_pass http://127.0.0.1: 6123; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $http_host;}#PROXY-END/
#PROXY-START/
location ^~ / {
proxy_pass http://127.0.0.1:6123;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
}
location ~ ^/(ws|terminal/.+)$ {
proxy_pass http://127.0.0.1: 6123;
proxy_http_version 1.1;
proxy_set_header Connection "Upgrade";
#PROXY-END/
前台访问目录为网站根目录pubic
[img]blob:https://www.bt.cn/eb89e56a-471f-4427-89ca-09976f1c9908[/img]
加密目录为/tags/和/tags/linux/
[img]blob:https://www.bt.cn/72a4ceab-abac-41d6-b2ef-59d3497db567[/img]
前台通过访问www.blog.xxx.com/tags/和/tags/linux/下静态网页,
/tags/和/tags/linux/ 真实路径为网站根目录下/public/tags和/public/tags/linux
本版积分规则 发表回复 回帖后跳转到最后一页
论坛响应时间:72小时
问题处理方式:排队(仅解答)
工作时间:白班:9:00 - 18:00
响应时间:3分钟
问题处理方式:宝塔专家1对1服务
工作时间:工作日:9:00 - 18:30
宝塔专业团队为您解决服务器疑难问题