server{
listen 443;
ssl on;
server_name
s.galdb.net;
ssl_certificate /data/crt/s.galdb.net.crt;
ssl_certificate_key /data/crt/s.galdb.net.key;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "";
proxy_pass
http://www.google.com.hk;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Accept-Language "zh-CN";
sub_filter
www.google.com.hk s.galdb.net;
sub_filter_once off;
proxy_redirect off;
proxy_set_header Host
www.google.com.hk;
}
}
用这个配置还是会被重新定向到www.google.com.hk = =