原来好好的。。最近实在无聊像访问忽然不行了~~~~ 把 99 替换成 66 就是了。。怪不好意思的。。
server {
listen 80;
server_name cl.getpocket.in;
location / {
rewrite ^/(.*)$ https://cl.getpocket.in$1 permanent;
}
}
server {
server_name cl.getpocket.in;
listen 443;
resolver 8.8.8.8;
ssl on;
ssl_certificate /etc/nginx/ssl/fullchain.cer;
ssl_certificate_key /etc/nginx/ssl/sj.getpocket.in.key;
#forbid spider
if ($http_user_agent ~* "qihoobot|Baiduspider|Googlebot|Googlebot-Mobile|Googlebot-Image|Mediapartners-Google|Adsbot-Google|Feedfetcher-Google|Yahoo! Slurp|Yahoo! Slurp China|YoudaoBot|Sosospider|Sogou spider|Sogou web spider|MSNBot|ia_archiver|Tomato Bot")
{
return 403;
}
access_log off;
error_log on;
error_log /var/log/nginx/google-proxy-error.log;
location / {
proxy_redirect off;
proxy_cookie_domain t99y.com cl.getpocket.in;
proxy_pass https://www.t99y.com;
proxy_connect_timeout 60s;
proxy_read_timeout 5400s;
proxy_send_timeout 5400s;
proxy_set_header Host "www.t99y.com";
proxy_set_header User-Agent $http_user_agent;
proxy_set_header Referer https://www.t99y.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;
proxy_set_header X-Forwarded-Proto https;
subs_filter https://www.t99y.com https://cl.getpocket.in;
sub_filter_once off;
}
}
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.