全球主机交流论坛
标题:
NPS 域名解析问题请教
[打印本页]
作者:
师太
时间:
2023-4-8 09:46
标题:
NPS 域名解析问题请教
NPS 域名解析,二级目录无法访问
比如内网新建网站 127.0.0.1:8000,网站内新建文件夹xx,外网 a.abc.com 域名解析到内网
外网访问a.abc.com,没问题
外网访问a.abc.com/asdda(任意目录) 没问题返回404
外网访问a.abc.com/xx/ (url最后带/) 没问题返回403
外网访问a.abc.com/xx (url最后不带/) 无法访问,会跳转到a.abc.com:8000/xx
求解这是NPS的BUG吗?有没有办法解决
作者:
yousihai
时间:
2023-4-8 11:34
nginx设置禁止绝对跳转或者禁止跳转带端口即可
作者:
师太
时间:
2023-4-8 20:29
yousihai 发表于 2023-4-8 11:34
nginx设置禁止绝对跳转或者禁止跳转带端口即可
大佬厉害,开始没明白,百度半天,nginx设置 port_in_redirect off就解决了
欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/)
Powered by Discuz! X3.4