proxy_set_header Host $host;
配置nginx反向代理后在项目中,写request.getServerName()的时候,总是返回的127.0.0.1 这个地址。 在location块中添加如下内容
转载于:https://my.oschina.net/crazyharry/blog/1105192
proxy_set_header Host $host;
转载于:https://my.oschina.net/crazyharry/blog/1105192