美文网首页
ngnix配置

ngnix配置

作者: 蘇上方 | 来源:发表于2016-11-03 11:14 被阅读41次
    server {
        listen 443;
        server_name  uc-res.meizu.com;
        access_log  /data/log/nginx/uc-res.meizu.com.log;
        root /data/static/static;
    
    
        ssl on;
    
    
        ssl_certificate meizu.com.crt;
        ssl_certificate_key meizu.com.key.unsecure;
    
    
        ssl_session_timeout 5m;
        ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-RSA-RC4-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:ECDHE-RSA-AES128-SHA256:RC4-SHA:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!DSS:!PKS;
        ssl_prefer_server_ciphers on;
    
        location /resources {
                alias /home/common.res.meizu.com/resources;
        }
    
        location /resources/uc {
                alias /data/static/static/resources/uc;
        }
    
        location /resources/sync {
                alias /data/static/static/resources/sync;
        }
    
        location /resources/base {
                alias /data/static/static/resources/base;
        }
    
    
        location /resources/member {
                alias /data/static/static/resources/uc/member;
        }
    
        location /resources/intl {
                alias /data/static/static/resources/intl;
        }
        location /resources/mplus {
                alias /data/static/static/resources/mplus;
        }
        ## /resources/uc/usercenter/flyme.5.0_uc_h5.zip
        ## /resources/uc/usercenter/config.json
        location /resources/usercenter {
                alias /data/static/static/resources/usercenter;
        }
        location /resources/flyme {
                alias /data/static/static/resources/flyme;
        }
        location /resources/flymeos {
                alias /data/static/static/resources/flymeos;
        }
        location /resources/pay {
                alias /data/static/static/resources/pay;
        }
        location /resources/compaign/h5 {
            alias /data/static/static/resources/compaign/h5;
        }
    
        location /resources/wallet/jr/h5/ {
            alias /data/static/static/resources/wallet/jr/h5/;
        }
        location /resources/jrpay {
                alias /data/static/static/resources/jrpay;
        }
    
        location /resources/i18n/en_US/uc/web{
               alias /data/static/static/resources/uc/web/i18n/en_US;
        }
        
        location /resources/i18n/en_US/uc/wlogin {
               alias /data/static/static/resources/uc/wlogin/i18n/en_US;
        }    
     }

    相关文章

      网友评论

          本文标题:ngnix配置

          本文链接:https://www.haomeiwen.com/subject/umtbyttx.html