1.正常页面http://ip1:port
2.用ip2代理ip1:port 登录页面 http://ip2/aaa/
location /aaa {
proxy_pass http://ip2:port;
}
访问页面如下:
原因静态页面没有加载如下,需要通过F12查看,静态页面
处理方法
在location下加静态页面
location ~ .*.(js|css|woff|ttf|woff2|png)$ {
proxy_pass http://ip:port;
}