Skip to content

Commit

Permalink
Update 201611.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qibaoguang authored Nov 14, 2016
1 parent a52716c commit 8f435ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 工作总结/201611.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###一、服务端拼装URL
`request.getRequestURL()`获取的是域名+端口的绝对路径,如果使用nginx且nginx没有配置`proxy_set_header Host $host`,则该方法获取的是tomcat地址,很可能导致前端访问出错。
`request.getRequestURL()`获取的是域名+端口的绝对路径,如果使用nginx且没有配置`proxy_set_header Host $host`,则该方法获取的是tomcat地址,很可能导致前端访问出错。

修改方法:
1. 修改nginx,添加以下配置:
Expand Down

0 comments on commit 8f435ec

Please sign in to comment.