nginx反向代理
location /edu
{
proxy_pass https://c3wedu.hapu.net;
proxy_set_header Host c3wedu.hapu.net;
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;
}
标签:hapu,set,header,Cache,代理,nginx,add,反向,proxy From: https://blog.51cto.com/jing/6002527