共计 314 个字符,预计需要花费 1 分钟才能阅读完成。
要求功能
访问 http://domain/share/path,通过代理实际访问 http://127.0.0.1:8800/path,这个没问题
但是访问 http://domain/#/path,就 404 了,直接 http://domain:8800/#/path 没问题
server {
listen 80;
location /share/ {
proxy_pass http://127.0.0.1:8800/;
}
location /# {
proxy_pass http://127.0.0.1:8800;
}
}
复制代码
上一篇:求推荐小鸡
下一篇:IOS 有啥和安卓阅读一样的 app?
代理目录写成 /share/path/ 然后代理 8800/path,不就解决了
正文完