mantouge

自己搭建 Google 反向代理网站

  •  1
     
  •   mantouge · Jul 1, 2015 · 25012 views
    This topic created in 4149 days ago, the information mentioned may be changed or developed.

    上次发布了一篇 建了一个 Google 反代,会有什么后果? http://v2ex.com/t/201854
    然后发现很多童鞋对怎么搭建反向代理服务器很感兴趣,这里就贴出来了,3KU 们!

    假设你有一台可以访问Google服务的的服务器(VPS)

    假设你有一个域名,并已经解析到服务器IP

    假设你有SSL域名证书

    假设你使用Nginx为WEB服务软件

    方案一,新建网站,配置文件参考如下

    upstream www.google.com {
    server 173.194.38.1:443;
    server 173.194.38.2:443;
    server 173.194.38.3:443;
    server 173.194.38.4:443;
    }
    server{
    listen 80;
    server_name guge.info www.guge.info;
    rewrite ^(.*) https://guge.info/$1 permanent;
    }
    server{
    listen 443;
    server_name guge.info;
    ssl on;
    ssl_certificate /ssl/guge.info.crt;
    ssl_certificate_key /ssl/guge.info.pem;
    ssl_protocols SSLv3 TLSv1;
    ssl_ciphers ALL:-ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP;
    location / {
    proxy_redirect off;
    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;
    proxy_pass https://encrypted.google.com;
    }

    }

    方案2

    使用Nginx ngx_http_google_filter_module 插件
    具体方法参见:https://github.com/cuber/ngx_http_google_filter_module

    我自己搭建了一个 https://guge.info 可以免费使用!

    博客原文链接:http://www.qianmo.org/nginx-google/

    18 replies  •  2019-03-27 14:34:10 +08:00
    Solerer
    Solerer
    Jul 1, 2015 via Android
    1
    学习
    julijulilijuliju
    julijulilijuliju
    Jul 1, 2015 via Android
    2
    Google job!
    comanboy
    comanboy
    Jul 1, 2015 via iPhone
    3
    楼主好人啊!
    westup
    westup
    Jul 1, 2015
    4
    没有SSL域名证书,就不能搭吗
    mantouge
    mantouge
    OP
    Jul 1, 2015
    5
    @westup 貌似会跳转到google
    cat9life
    cat9life
    Jul 1, 2015
    6
    thanks. 这个可以有
    582033
    582033
    Jul 1, 2015
    7
    很快就就会失效了
    Hello1995
    Hello1995
    Jul 1, 2015 via Android
    8
    @westup 可以搭,只是没有 https 安全。查一些词容易 reset。
    tabris17
    tabris17
    Jul 1, 2015
    9
    搜不了几次就会跳出来captcha验证码,时间久了你这个IP就会被google封锁了
    GG668v26Fd55CP5W
    GG668v26Fd55CP5W
    Jul 1, 2015 via iPhone
    10
    于是我也搭了一个
    mantouge
    mantouge
    OP
    Jul 3, 2015
    11
    @falcon05 域名呢
    GG668v26Fd55CP5W
    GG668v26Fd55CP5W
    Jul 3, 2015 via iPhone
    12
    @mantouge
    http://gg.cellmean.com
    没有ssl,有时会被reset😂
    mantouge
    mantouge
    OP
    Jul 5, 2015
    13
    @falcon05 搞个免费的ssl呀,startssl
    dreamcountry
    dreamcountry
    Jul 6, 2015
    14
    @mantouge 使用ssl为什么就不会被封IP呢
    mantouge
    mantouge
    OP
    Jul 6, 2015
    15
    @dreamcountry 一样封吧!
    OrbitTerminus
    OrbitTerminus
    Jul 7, 2015
    16
    搜出来的图片 点图片进去详细页面 之后打不开
    knightliao
    knightliao
    Jan 5, 2017
    17
    太麻烦, www.sov5.com 直接搜谷歌内容
    huangzi959
    huangzi959
    Mar 27, 2019
    18
    稳
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4183 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 06:37 · PVG 14:37 · LAX 22:37 · JFK 01:37
    ♥ Do have faith in what you're doing.