求大神 Nginx反向代理 出现图片显示不出 样式丢失的情况
直接访问http://www.xxxxx.com:10081页面是正常的想用Nginx做不跳转访问http://www.xxxxx.com/123反向代理访问本地的http://127.0.0.1:10081
server {
listen 80;
server_namewww.xxxxx.com;
location /123/ {
proxy_pass http://127.0.0.1:10081/;
proxy_redirect default;
}
}
页面能打开.但是图片显示不出,样式丢失
查看源文件,图片路径是http://www.xxxxx.com/images/logo.png
实际http://www.xxxxx.com/123/images/logo.png图片能打开
求助大神
页:
[1]