1
ZGLHHH 2016-07-19 12:21:50 +08:00
proxy_redirect off;
试试这个? |
3
ZGLHHH 2016-07-19 12:35:20 +08:00
|
4
eric13517 OP @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 跳 |
6
huangtao728 2016-07-19 13:32:52 +08:00 via iPad
那干脆直接反代 .my ?
|
7
eric13517 OP OK 了
把这句: proxy_set_header Host program-think.blogspot.com; 修改为: proxy_set_header Host program-think.blogspot.my; 再增加了一句: subs_filter "program-think.blogspot.my" "mydomain"; |
8
skylancer 2016-07-19 16:16:13 +08:00
在帖子中附加地址的时候建议卤煮养成在网址后加空格的好习惯
|
9
lilydjwg 2016-07-20 13:41:44 +08:00
blogspot 总喜欢跳转到国别域名……
|