送财童子小花花 发表于 2020-12-19 11:41
location ~ \mulu{
你的反带代码;
}
xshell 发表于 2020-12-19 11:50
光这样就行了嘛?
那不然咧,这个简单的就能解决你的问题呀

liuyangge 发表于 2020-12-19 12:47
rewrite+bypass可以实现 下面示例 实现了访问 域名/tz 实际指向为 http://172.0.0.10:80/index.php:lo ...
xshell 发表于 2020-12-19 19:57
这样只有index.php才能访问啊 其他都4040

xshell 发表于 2020-12-19 21:10
每一个页面都这样弄一下?
liuyangge 发表于 2020-12-19 21:22
你可以location正则匹配 然后取$uri变量rewrite到对应地址 然后proxy_pass
大佬可以写一下吗?真的不会xshell 发表于 2020-12-19 21:27
大佬可以写一下吗?真的不会
liuyangge 发表于 2020-12-19 21:36
你给两个示例啊 我帮你看一下怎么写
xshell 发表于 2020-12-19 21:50
就是把某个网站例如 abc.com 反代到我的网站目录 XXX.com/abc/
然后XXX.com/abc/可以正常访问ab ...
| 欢迎光临 全球主机交流论坛 (https://loc.998820.xyz/) | Powered by Discuz! X3.4 |