存档

文章标签 ‘URI’

nginx proxy_pass 指令结尾加不加/的区别

2020年3月10日 没有评论

If it is necessary to transmit URI in the unprocessed form then directive proxy_pass should be used without URI part. 这段话的意思是如果你要保持输入的请求原样不变传给后端,那么你的proxy_pass指令就不能带有URI部分。 读起来比较晦涩,尤其是英文长句,举个实际例子: #结尾不加/ location /abc/ { proxy_pass http://10.1.12.123:8080; } #结尾添加/ location /abc/ { proxy_pass http://10.1.12.123:8080/; } 咋一看,这两个配置没什么区别。实际上最主要的区别就是proxy_pass指...

分类: nginx 标签: