【发布时间】:2017-01-19 15:42:09
【问题描述】:
例如: 我想使用域反向代理https://tw.godaddy.com,可以吗? 我的配置不起作用。
location ~ /
{
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass https://tw.godaddy.com;
proxy_set_header Host "tw.godaddy.com";
proxy_set_header Accept-Encoding "";
proxy_set_header User-Agent $http_user_agent;
#more_clear_headers "X-Frame-Options";
sub_filter_once off;
}
【问题讨论】: