sep.cc 如涉及侵权内容,请联系 cyclists@outlook.com

Nginx 反向代理 Google 参数配置

有时出门在网吧或者去朋友家无法使用SSR,懒得下载软件填写参数又想直接使用google搜索资料,直接搞了一个Google反代使用,只能使用google基本的搜索功能,无法使用其他服务,如需其他服务请自行反代你所需要的服务。

Nginx 反代 Google 配置:

server {
        listen 443;
        listen [::]:443;
        server_name xxx.xxx.xxx;
        ssl on;
        ssl_certificate /root/.acme.sh/sep.cc/fullchain.cer;
        ssl_certificate_key /root/.acme.sh/sep.cc/sep.cc.key;
        location / {
            proxy_redirect off;
            proxy_pass https://www.google.com;

        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Accept-Encoding "";
        sub_filter www.google.com xxx.xxx.xxx;
        sub_filter_once off;
        }
     }

自行替换"xxx"以及SSL路径。

最后编辑:2018年7月20日 00:22:00「本站部分内容具有时效性,如遇失效请留言反馈」

转载声明:本站所有内容采用 CC BY-NC-SA 国际许可协议,转载请注明来源:Sep blog,谢谢!

版权声明:如文章内容涉及侵权,请联系 cyclists@outlook.com,待查证属实之后会立刻删除侵权内容。