@
ZGLHHH 多谢,不过没看出这个有什么特殊的地方
贴一下我的设置:
server {
listen 443 ssl;
server_name mydomain;
resolver 8.8.8.8;
ssl on;
ssl_certificate myssl;
ssl_certificate_key myssl.key;
location / {
proxy_pass
https://program-think.blogspot.com/; proxy_redirect off;
proxy_set_header Host
program-think.blogspot.com;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header Referer
https://program-think.blogspot.com/; proxy_set_header Accept-Encoding "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
subs_filter "
program-think.blogspot.com" "mydomain";
subs_filter_types text/css text/xml text/javascript;
sub_filter_once off;
}
}
我在另一台 VPS 上也试过,相同的配置,
不会跳到.my ,不知道为什么这个 VPS
会往.my 跳