谁能帮忙解决 googlevideo 下的视频反代问题?

2015-10-25 18:35:44 +08:00
 wico77

目前使用的是 nginx 反代,配置如下。
server {
listen 80;
server_name ~^(.+).mydomain.com$;

location / {

resolver 8.8.8.8;

 proxy_pass https://$1.googlevideo.com;
 proxy_set_header referer https://$1.googlevideo.com;
 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 proxy_set_header Host $1.googlevideo.com;
 proxy_redirect off;
 proxy_set_header User-Agent $http_user_agent;

}
}

可是老跳转到 googlevideo 。反代不成功。请大家帮解决。谢谢

4245 次点击
所在节点    NGINX
23 条回复
402645707
2015-10-28 21:33:56 +08:00
@wico77 证书自签的,因为代理服务器 ip 一致所以我自己不跳
wico77
2015-10-28 22:24:53 +08:00
@402645707 加个 QQ 吧。详聊 2375697963 我的代理和反代都是一个 IP
just1
2016-01-20 19:48:56 +08:00
@wico77 curl 自测一下

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/230963

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX