login.m.yohobuy.com.conf 2.04 KB
server
{
    listen       443 ssl;
    server_name  login.m.yohobuy.com;
    root  /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;

    ssl_certificate      /Data/local/nginx-1.8.0/conf/ssl/server.pem;
    ssl_certificate_key  /Data/local/nginx-1.8.0/conf/ssl/server.key;
    ssl_dhparam          /Data/local/nginx-1.8.0/conf/ssl/dhparam.pem;

    ssl_prefer_server_ciphers  on;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:AES256-GCM-SHA384:DES-CBC3-SHA";
    ssl_session_tickets off;
    ssl_session_cache shared:SSL:10m;
    access_log  /Data/logs/nginx/https_login.m.yohobuy.com.access.log  fenxi;
    location = / {
        return 301 http://m.yohobuy.com;
    }

    location = /error.html {
        return 301 http://m.yohobuy.com/error.html;
    }
    
    location / {
        proxy_redirect off;
        proxy_pass http://yohobuy;
        proxy_set_header   Host   $host;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }

    location ^~ /dist/ {
        proxy_redirect off;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_pass http://cdn.yoho.cn/;
    }

    location = /Passport/session/index {
        proxy_redirect off;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://mapi.yohobuy.com;
    }

    location = /home/message {
        return 301 http://m.yohobuy.com/home/message;
    }

    location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
        expires    30d;
    }
    location =/crossdomain.xml {
        expires    30d;
    }
}