時(shí)間:2023-02-08 13:48:01 | 來(lái)源:建站知識(shí)
時(shí)間:2023-02-08 13:48:01 來(lái)源:建站知識(shí)
一、為什么有這個(gè)需求#PROXY-START/location ~* /.(php|jsp|cgi|asp|aspx)${ proxy_pass http://114.*.*.*; proxy_set_header Host 114.*.*.*; # 修改host 原來(lái),綁定的是$host,更改為ip proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr;}location /{ proxy_pass http://114.*.*.*; proxy_set_header Host 114.*.*.*; # 修改host 原來(lái),綁定的是$host,更改為ip proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; add_header X-Cache $upstream_cache_status; #Set Nginx Cache add_header Cache-Control no-cache; expires 12h;}#PROXY-END/
關(guān)鍵詞:使用,方法,外域
客戶&案例
營(yíng)銷資訊
關(guān)于我們
客戶&案例
營(yíng)銷資訊
關(guān)于我們
微信公眾號(hào)
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。