×

google https ssl 反向代理配置

天外来信 天外来信 发表于2022-09-05 10:59:36 浏览149 评论0

抢沙发发表评论

server
{
    listen 443;
    server_name g.tou.mobi;
    ssl on;
    ssl_certificate /usr/local/nginx/conf/ssl/www.g.tou.mobi.crt;
    ssl_certificate_key /usr/local/nginx/conf/ssl/www.g.tou.mobi.pem;
    ssl_protocols sslv3 tlsv1;
    ssl_ciphers all:-adh:+high:+medium:-low:-sslv2:-exp;
    location / {
        proxy_redirect off;
        proxy_pass https://www.google.co.jp/;
        proxy_redirect http://www.google.com/ /;
        proxy_cookie_domain google.com g.tou.mobi;
        proxy_set_header accept-encoding "";
        proxy_set_header user-agent $http_user_agent;
        proxy_set_header accept-language "zh-cn";
        proxy_set_header cookie "pref=id=047808f19f6de346:u=0f62f33dd8549d11:ff=2:ld=zh-cn:nw=1:tm=1325338577:lm=1332142444:gm=1:sg=2:s=re0syjh2w1iq-maw";
    }
}
server
{
    listen 80;
    server_name g.tou.mobi;
    rewrite ^(.*) https://g.tou.mobi$1 permanent;
}



测试域名:g.tou.mobi

可以试一下。

评论列表

访客