hopeless-dream

导航

2020年5月6日 #

Nginx中proxy_pass 后有无/的区别

摘要: 1、代理服务器配置文件proxy_pass带 /的情况 http { include mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_loca 阅读全文

posted @ 2020-05-06 02:22 hopeless-dream 阅读(541) 评论(0) 推荐(0) 编辑

Nginx中$http_host、$host、$proxy_host的区别

摘要: 变量 是否显示端口 值是否存在 host 否 "Host:value"显示 值为a:b的时候,只显示a http_host 是 "Host:value",value存在就显示 proxy_host 默认80不显示 其他端口显示 "Host:value"显示 通过Nginx配置演示: [root@an 阅读全文

posted @ 2020-05-06 01:16 hopeless-dream 阅读(29566) 评论(5) 推荐(4) 编辑