Authored by 梁志锋

备份nginx文件

Showing 23 changed files with 1692 additions and 330 deletions
#old idc
location = /passport/auth/signin {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
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 = /live/index {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
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 = /yohoshow {
# proxy_redirect off;
# proxy_pass http://yohobuy-old-www;
# 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";
return 301 http://$host;
}
location =/product/specials {
return 301 http://$host;
}
location =/search/thanks {
return 301 http://$host;
}
location =/search/vip {
return 301 http://$host;
}
location =/search/promotion {
return 301 http://$host;
}
location =/outlet {
return 301 http://$host;
}
location = /search {
# return 301 http://search.yohobuy.com$request_uri;
rewrite /search http://search.yohobuy.com permanent;
}
location ^~ /logout_ {
rewrite ^/logout_(.+).html http://www.yohobuy.com/logout.html?token=$1;
}
location ^~ /product/pro_ {
return 301 http://item.yohobuy.com$request_uri;
}
location = /sale {
rewrite /sale http://www.yohobuy.com/product/sale/ permanent;
}
#location ^~ /brands/ {
# rewrite /brands/$ http://www.yohobuy.com/brands permanent;
#}
location ^~ /discount {
rewrite /discount http://search.yohobuy.com permanent;
}
location ^~ /gallery {
rewrite /gallery http://www.yohobuy.com permanent;
}
location ^~ /lookbook {
rewrite /lookbook http://guang.yohobuy.com permanent;
}
location ^~ /trends {
rewrite /trends http://guang.yohobuy.com permanent;
}
location ^~ /promotion {
rewrite /promotion http://list.yohobuy.com/sale permanent;
}
location /product/new {
rewrite ^/product/new(.*)$ http://list.yohobuy.com/new$1 permanent;
}
location ^~ /product/exhibit {
rewrite /product/exhibit http://www.yohobuy.com permanent;
}
location =/favicon.ico {
expires 30d;
}
location =/crossdomain.xml {
expires 30d;
}
location =/robots.txt {
expires 1d;
}
##百度站长的校验文件, 百度站长账号feng322169 密码yoho9646
location = /baidu_verify_Mrj1Pt3L86.html {
root /Data/PE/yohobuy_pc/assets;
expires 7d;
}
\ No newline at end of file
location ~* /special_(\d+)_(.*)\.html$ {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
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 = /index.html {
return 301 http://www.yohobuy.com/;
}
location ^~ /resource/getbanner {
rewrite /resource/getbanner(.*)$ http://www.yohobuy.com/common/getbanner$1 permanent;
}
... ...
ssl on;
ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/dhparam.pem;
# ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
... ...
## old idc
location = /erp2goods {
#old idc
location ^~ /erp2goods {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
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 = /passport/auth/signin {
proxy_redirect off;
... ... @@ -16,7 +16,7 @@
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 = /live/index {
proxy_redirect off;
... ... @@ -25,20 +25,15 @@
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 = /yohoshow {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
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";
}
return 301 http://$host;
}
location =/product/specials {
return 301 http://$host;
}
location =/product/specials {
return 301 http://$host;
}
location =/search/thanks {
return 301 http://$host;
... ... @@ -57,7 +52,8 @@
}
location = /search {
return 301 http://search.yohobuy.com$request_uri;
# return 301 http://search.yohobuy.com$request_uri;
rewrite /search http://search.yohobuy.com permanent;
}
location ^~ /logout_ {
... ... @@ -65,12 +61,21 @@
}
location ^~ /product/pro_ {
return 301 http://item.yohobuy.com$request_uri;
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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 ^~ /brands/ {
rewrite /brands/$ http://www.yohobuy.com/brands permanent;
location = /sale {
rewrite /sale http://www.yohobuy.com/product/sale/ permanent;
}
#location ^~ /brands/ {
# rewrite /brands/$ http://www.yohobuy.com/brands permanent;
#}
location ^~ /discount {
rewrite /discount http://search.yohobuy.com permanent;
}
... ... @@ -97,4 +102,6 @@
location ^~ /product/exhibit {
rewrite /product/exhibit http://www.yohobuy.com permanent;
}
\ No newline at end of file
}
... ...
#SEO optimization
if ($host ~* ^www\.(.*)\.yohobuy\.com) {
set $sub_name $1;
return 301 $scheme://$sub_name.yohobuy.com$request_uri;
location = / {
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /yohounion/ {
location = /woman {
proxy_redirect off;
proxy_pass http://unionapi/union/;
proxy_pass http://yohobuy-node;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $http_x_forwarded_for;
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 = /girls {
return 301 /woman;
}
##pc_alipay_notice
location = /pay/notice/alimobilenoticemini {
location = /kids {
proxy_redirect off;
proxy_pass http://yoho_service/payment/alipay_notify;
proxy_set_header Host service.yoho.cn;
proxy_pass http://yohobuy-node;
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 = /lifestyle {
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /brands {
location ^~ /product/sale/ {
proxy_redirect off;
proxy_pass http://yohobuy-pc;
proxy_pass http://yohobuy-node;
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 ^~ /common/passport {
location ^~ /product/outlets/ {
proxy_redirect off;
proxy_pass http://yohobuy-pc;
proxy_pass http://yohobuy-node;
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 ^~ /Passport/session/index {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
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 = /passport/autosign/wechat {
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /passport/login/wechat/ {
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /guide {
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /home/address/area {
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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";
}
\ No newline at end of file
location = /getbrandFloorDataAjax {
proxy_redirect off;
proxy_pass http://yohobuy-node;
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";
}
\ No newline at end of file
... ...
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 1;
location = / {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /woman {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /girls {
return 301 /woman;
}
location = /kids {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /lifestyle {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /product/sale/ {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /product/outlets/ {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /passport/autosign/wechat {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /passport/login/wechat/ {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /guide {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /getbrandFloorDataAjax {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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";
}
\ No newline at end of file
... ...
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 1;
location = / {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /woman {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /girls {
return 301 /woman;
}
location = /kids {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /lifestyle {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /product/sale/ {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /product/outlets/ {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /passport/autosign/wechat {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /passport/login/wechat/ {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /guide {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 = /getbrandFloorDataAjax {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-node;
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";
}
\ No newline at end of file
... ...
#SEO optimization
#SEO optimization
if ($host ~* ^www\.(.*)\.yohobuy\.com) {
set $sub_name $1;
return 301 $scheme://$sub_name.yohobuy.com$request_uri;
... ... @@ -20,4 +20,41 @@
proxy_set_header Host service.yoho.cn;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
\ No newline at end of file
}
location ^~ /brands {
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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 ^~ /common/passport {
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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 ^~ /Passport/session/index {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
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 ^~ /home/address/area {
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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";
}
\ No newline at end of file
... ...
... ... @@ -6,4 +6,10 @@
}
location =/robots.txt {
expires 1d;
}
## baidu feng322169 yoho9646
location = /baidu_verify_Mrj1Pt3L86.html {
root /Data/PE/yohobuy_pc/assets;
expires 7d;
}
\ No newline at end of file
... ...
#app api
location =/appembed {
default_type application/json;
return 200 '{"code":200,"message":"app embed","data":{"open":"N","url":"http://m.yohobuy.com"}}';
}
location =/lb/v1 {
#cc: e0323a9039add2978bf5b49550572c7c oo:e47ca7a09cf6781e29634502345930a7
#acecl:7ea6bdf07376a928c5d4677789c45463 opqcl:kai: 352f028bd6ecf28de1c285c573642659 guang:7ea6bdf07376a928c5d4677789c45463
#srp 62a165d59f8daf42e2df5f3c5aed8a2f krp:17d7a40f313560d4d9a1189a91e45ab9
#boc 94931e4a3036baeecdacb975e10a8ec6 bcc:dc9262a469f6f315f74c087a7b3a7f35
default_type application/json;
return 200 '{"code":200,"message":"Config Success","md5":"e4567a9039add2978bf5b49550572cff","data":{"ae":"e0323a9039add2978bf5b49550572c7c","url":"http://m.yohobuy.com","tl":"352f028bd6ecf28de1c285c573642659","dl":"2a90dfa0f37b92aaebf369e9a4d38ba4","rp":"17d7a40f313560d4d9a1189a91e45ab9","dli":"5b2d8b4b242e067616c6cd98851b2306"}}';
}
location =/hf/v1 {
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 =/rn/v1 {
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";
}
... ...
ssl on;
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;
... ...
#idc old proxy
location =/invite.html {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location =/app.html {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location =/yohood.html {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /home/lottery {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /home/redenvelopes {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /home/orders/tickets {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /home/currency/ {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location = /home/orders/cancel {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /wechat {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /huodong {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /download {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /events {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /appactive {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /cart/success {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /shopping/success {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /shopping/pay/aliwap {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location = /shopping/pay/wechatwap {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /passport/syncsignin {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location = /product/index/search {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /share_ {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host m.yohobuy.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 "gzip";
}
# idc old proxy for login to write memcache and cookie (if need?)
location ^~ /Passport/session {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host mapi.yohobuy.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 "gzip";
}
location =/product/new/index {
return 301 http://m.yohobuy.com/product/new;
}
#old idc
location =/download/appsem {
return 301 http://cdn.yoho.cn/huodong-web/appsem/appsem.html;
}
location =/app {
return 301 http://www.yoho.cn;
}
location =/help.html {
return 301 http://m.yohobuy.com/home/help;
}
location ^~ /trends_detail_ {
return 301 http://guang.m.yohobuy.com;
}
#location =/about {
# return 301 http://$host$request_uri;
# }
#location =/brand/index/about{
# return 301 http://$host$request_uri;
# }
location ^~ /product/pro_ {
return 301 http://item.m.yohobuy.com$request_uri;
}
... ...
location ^~ /passport/login/wechat/ {
proxy_redirect off;
proxy_pass http://yohobuywap-node;
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 ^~ /activity {
proxy_redirect off;
proxy_pass http://yohobuywap-node;
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";
}
#channel page
location = / {
proxy_redirect off;
proxy_pass http://yohobuywap-node;
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 = /boys {
proxy_redirect off;
proxy_pass http://yohobuywap-node;
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 = /girls {
proxy_redirect off;
proxy_pass http://yohobuywap-node;
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 = /girl {
return 301 /girls;
}
location = /kids {
proxy_redirect off;
proxy_pass http://yohobuywap-node;
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 = /lifestyle {
proxy_redirect off;
proxy_pass http://yohobuywap-node;
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 ^~ /channel {
proxy_redirect off;
proxy_pass http://yohobuywap-node;
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 ^~ /product/sale/ {
proxy_redirect off;
proxy_pass http://yohobuywap-node;
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 ^~ /guang/star/ {
proxy_redirect off;
proxy_pass http://yohobuywap-node;
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 ^~ /product/outlet/ {
proxy_redirect off;
proxy_pass http://yohobuywap-node;
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 ^~ /product/sale/ {
proxy_redirect off;
proxy_pass http://yohobuy-node;
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";
}
# wechat pay
location ^~ /shopping/pay/aliwapreturn {
proxy_redirect off;
proxy_pass http://yohobuy;
proxy_set_header Host m.yohobuy.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 "gzip";
}
location ^~ /home/orders/pay {
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 ^~ /product/outlets/ {
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /shopping/pay/wechatwapapi {
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 = /passport/autosign/wechat {
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /coupon {
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 ^~ /passport/login/wechat/ {
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /sale/ {
# proxy_redirect off;
# proxy_pass http://yohobuy-node;
# 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 = /product/index/getNodeContent {
# proxy_redirect off;
# proxy_pass http://yohobuy-node;
# 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 = /coupon/index {
return 301 /activity/coupon?$query_string;
}
... ...
#static file
location =/favicon.ico {
expires 7d;
}
location =/crossdomain.xml {
expires 7d;
}
location =/sitemap.xml {
expires 1d;
}
location =/robots.txt {
expires 1d;
}
location = /error.html {
root /Data/PE/yohobuy_H5/assets;
expires 7d;
}
# app show help page
location =/help/shareorder.html {
root /Data/PE/yohobuy_H5/assets;
expires 7d;
}
## baidu feng322169 yoho9646
location = /baidu_verify_bXX90VTyvs.html {
root /Data/PE/yohobuy_H5/assets;
expires 7d;
}
... ...
server
{
listen 80;
server_name *.yohobuy.com;
root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public;
server_name www.yohobuy.com *.yohobuy.com;
root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public;
error_log /Data/logs/error.pc.yohobuy.com.log warn;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
# static file
include vhosts/location/yohobuypc_static.conf;
... ... @@ -15,31 +16,100 @@ server
# php
include vhosts/location/yohobuypc_php.conf;
# node
include vhosts/location/yohobuypc_node.conf;
location ~* /special_(\d+)_(.*)\.html$ {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
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 ~* /special/(\d+)_(.*)\.html$ {
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /home/returns {
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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 = /index.html {
return 301 http://www.yohobuy.com/;
return 301 http://www.yohobuy.com/;
}
location ^~ /resource/getbanner {
rewrite /resource/getbanner(.*)$ https://www.yohobuy.com/common/getbanner$1 permanent;
}
location ^~ /resource/getbanner {
rewrite /resource/getbanner(.*)$ https://www.yohobuy.com/common/getbanner$1 permanent;
}
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 0;
location / {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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";
}
}
server
{
listen 80;
listen 443 ssl;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key;
server_name list.yohobuy.com item.yohobuy.com sale.yohobuy.com new.yohobuy.com search.yohobuy.com guang.yohobuy.com shop.yohobuy.com;
# https key
include vhosts/location/yohobuypc_httpskey.conf;
# others http 301 redirect https
location / {
return 301 https://$host$request_uri;
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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";
}
}
server
{
listen 443;
server_name *.yohobuy.com;
server_name www.yohobuy.com *.yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key;
root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public;
root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public;
error_log /Data/logs/error.pc.yohobuy.com.log warn;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
# https key
include vhosts/location/yohobuypc_httpskey.conf;
# static file
include vhosts/location/yohobuypc_static.conf;
... ... @@ -50,21 +120,42 @@ server
# php
include vhosts/location/yohobuypc_php.conf;
# node
include vhosts/location/yohobuypc_node.conf;
location ~* /special_(\d+)_(.*)\.html$ {
return 301 http://$host$request_uri;
}
location ~* /special/(\d+)_(.*)\.html$ {
return 301 http://$host$request_uri;
}
location ^~ /home/returns {
return 301 http://$host$request_uri;
}
location = /index.html {
return 301 https://www.yohobuy.com/;
return 301 http://www.yohobuy.com/;
}
location ^~ /resource/getbanner {
rewrite /resource/getbanner(.*)$ https://www.yohobuy.com/common/getbanner$1 permanent;
}
location ^~ /resource/getbanner {
rewrite /resource/getbanner(.*)$ https://www.yohobuy.com/common/getbanner$1 permanent;
}
location / {
proxy_redirect off;
proxy_pass http://yohobuy_pc;
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";
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 0;
location / {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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";
}
}
... ... @@ -73,6 +164,7 @@ server
listen 80;
server_name admin.yohobuy.com union.yohobuy.com;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
location / {
... ... @@ -90,7 +182,10 @@ server
{
listen 80;
server_name huodong.yohobuy.com;
root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public;
root /Data/PE/yohobuy_pc/yohobuy/huodong.yohobuy.com/public;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
location ^~ /cuxiao {
proxy_redirect off;
... ... @@ -100,7 +195,7 @@ server
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
location / {
proxy_redirect off;
proxy_pass http://yohobuy-old-huodong;
... ... @@ -119,10 +214,16 @@ server
listen 443;
server_name huodong.yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key;
root /Data/PE/yohobuy_pc/yohobuy/huodong.yohobuy.com/public;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public;
# https key
include vhosts/location/yohobuypc_httpskey.conf;
location ^~ /cuxiao {
proxy_redirect off;
... ... @@ -156,6 +257,46 @@ server
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key;
location = / {
return 301 https://www.yohobuy.com/;
return 301 http://www.yohobuy.com/;
}
}
server
{
listen 443;
server_name analytics.m.yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.key;
# https key
include vhosts/location/yohobuypc_httpskey.conf;
location / {
proxy_redirect off;
proxy_pass http://yohobuy_analytics;
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";
proxy_set_header http_referer $http_referer;
}
}
server
{
listen 80;
server_name analytics.m.yohobuy.com;
location / {
proxy_redirect off;
proxy_pass http://yohobuy_analytics;
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";
proxy_set_header http_referer $http_referer;
}
}
... ...
... ... @@ -2,7 +2,7 @@ server
{
listen 80;
server_name www.yohobuy.com *.yohobuy.com;
root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public;
root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
... ... @@ -17,7 +17,7 @@ server
include vhosts/location/yohobuypc_php.conf;
# node
include vhosts/location/yohobuypc_node.conf;
include vhosts/location/yohobuypc_node80.conf;
location ~* /special_(\d+)_(.*)\.html$ {
proxy_redirect off;
... ... @@ -28,24 +28,6 @@ server
proxy_set_header Accept-Encoding "gzip";
}
location ~* /special/(\d+)_(.*)\.html$ {
proxy_redirect off;
proxy_pass http://yohobuy-node;
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 ^~ /home/returns {
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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 = /index.html {
return 301 http://www.yohobuy.com/;
}
... ... @@ -75,23 +57,85 @@ server
server
{
listen 80;
listen 443 ssl;
server_name list.yohobuy.com item.yohobuy.com sale.yohobuy.com search.yohobuy.com guang.yohobuy.com shop.yohobuy.com;
root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
# static file
include vhosts/location/yohobuypc_static.conf;
# old idc
include vhosts/location/yohobuypc_idc.conf;
# php
include vhosts/location/yohobuypc_php.conf;
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 1;
location / {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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";
}
}
server
{
listen 443 ;
server_name list.yohobuy.com item.yohobuy.com sale.yohobuy.com search.yohobuy.com guang.yohobuy
.com shop.yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key;
server_name list.yohobuy.com item.yohobuy.com sale.yohobuy.com new.yohobuy.com search.yohobuy.com guang.yohobuy.com shop.yohobuy.com;
root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
# https key
include vhosts/location/yohobuypc_httpskey.conf;
# https key
include vhosts/location/yohobuypc_httpskey.conf;
# static file
include vhosts/location/yohobuypc_static.conf;
# old idc
include vhosts/location/yohobuypc_idc.conf;
# php
include vhosts/location/yohobuypc_php.conf;
# node
#include vhosts/location/yohobuypc_node443.conf;
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 1;
location / {
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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";
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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";
}
}
server
... ... @@ -102,7 +146,7 @@ server
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key;
root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public;
root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
... ... @@ -120,20 +164,12 @@ server
include vhosts/location/yohobuypc_php.conf;
# node
include vhosts/location/yohobuypc_node.conf;
include vhosts/location/yohobuypc_node443.conf;
location ~* /special_(\d+)_(.*)\.html$ {
return 301 http://$host$request_uri;
}
location ~* /special/(\d+)_(.*)\.html$ {
return 301 http://$host$request_uri;
}
location ^~ /home/returns {
return 301 http://$host$request_uri;
}
location = /index.html {
return 301 http://www.yohobuy.com/;
}
... ... @@ -143,7 +179,7 @@ server
}
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 0;
set $httpsFlag 1;
location / {
if ($httpsFlag = 0) {
... ... @@ -181,7 +217,7 @@ server
{
listen 80;
server_name huodong.yohobuy.com;
root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public;
root /Data/PE/yohobuy_pc/yohobuy/huodong.yohobuy.com/public;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
... ... @@ -216,7 +252,7 @@ server
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key;
root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public;
root /Data/PE/yohobuy_pc/yohobuy/huodong.yohobuy.com/public;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
... ... @@ -249,55 +285,40 @@ server
server
{
listen 80;
#listen 443 ssl;
listen 443 ssl;
server_name yohobuy.com;
#ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem;
#ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key;
# access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
location = / {
return 301 http://www.yohobuy.com/;
}
}
server
{
listen 443;
listen 80;
listen 443 ssl;
server_name analytics.m.yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.key;
ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/dhparam.pem;
# https key
include vhosts/location/yohobuywap_httpskey.conf;
location / {
proxy_redirect off;
proxy_pass http://yohobuy_analytics;
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";
proxy_set_header http_referer $http_referer;
}
}
server
{
listen 80;
server_name analytics.m.yohobuy.com;
location / {
proxy_redirect off;
proxy_pass http://yohobuy_analytics;
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";
proxy_set_header http_referer $http_referer;
}
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;
}
location / {
proxy_redirect off;
proxy_pass http://yohobuy_analytics;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
proxy_set_header http_referer $http_referer;
}
}
\ No newline at end of file
... ...
server
{
listen 80;
server_name www.yohobuy.com;
root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
############################################################## begin
# if the protocol is http, please open these configs, otherwise close these configs.
# exception, alwalys use http protocol
#include vhosts/location/yohobuypc_exception.conf;
# static file
#include vhosts/location/yohobuypc_static.conf;
# old idc
#include vhosts/location/yohobuypc_idc.conf;
# php
#include vhosts/location/yohobuypc_php.conf;
# node
#include vhosts/location/yohobuypc_node80.conf;
############################################################## end
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 1;
location / {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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";
}
}
server
{
listen 80;
server_name *.yohobuy.com;
root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
############################################################## begin
# if the protocol is http, please open these configs, otherwise close these configs.
# exception, alwalys use http protocol
#include vhosts/location/yohobuypc_exception.conf;
# static file
#include vhosts/location/yohobuypc_static.conf;
# old idc
#include vhosts/location/yohobuypc_idc.conf;
# php
#include vhosts/location/yohobuypc_php.conf;
############################################################## end
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 1;
location / {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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";
}
}
server
{
listen 443;
server_name www.yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key;
root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
# https key
include vhosts/location/yohobuypc_httpskey.conf;
############################################################## begin
# if the protocol is https, please open these configs, otherwise close these configs.
# exception, alwalys use http protocol
include vhosts/location/yohobuypc_exception.conf;
# static file
include vhosts/location/yohobuypc_static.conf;
# old idc
include vhosts/location/yohobuypc_idc.conf;
# php
include vhosts/location/yohobuypc_php.conf;
# node
include vhosts/location/yohobuypc_node443.conf;
############################################################## end
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 1;
location / {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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";
}
}
server
{
listen 443;
server_name *.yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key;
root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
# https key
include vhosts/location/yohobuypc_httpskey.conf;
############################################################## begin
# if the protocol is https, please open these configs, otherwise close these configs.
# exception, alwalys use http protocol
include vhosts/location/yohobuypc_exception.conf;
# static file
include vhosts/location/yohobuypc_static.conf;
# old idc
include vhosts/location/yohobuypc_idc.conf;
# php
include vhosts/location/yohobuypc_php.conf;
############################################################## end
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 1;
location / {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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";
}
}
server
{
listen 80;
server_name admin.yohobuy.com union.yohobuy.com;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
location / {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
proxy_set_header Host admin.yohobuy.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 "gzip";
}
}
server
{
listen 80;
server_name huodong.yohobuy.com;
root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
location ^~ /cuxiao {
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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 / {
proxy_redirect off;
proxy_pass http://yohobuy-old-huodong;
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";
}
# static file
include vhosts/location/yohobuypc_static.conf;
}
server
{
listen 443;
server_name huodong.yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key;
root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
# https key
include vhosts/location/yohobuypc_httpskey.conf;
location ^~ /cuxiao {
proxy_redirect off;
proxy_pass http://yohobuy-pc;
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 / {
proxy_redirect off;
proxy_pass http://yohobuy-old-huodong;
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";
}
# static file
include vhosts/location/yohobuypc_static.conf;
}
server
{
listen 80;
listen 443 ssl;
server_name yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key;
location = / {
return 301 http://www.yohobuy.com/;
}
}
server
{
listen 80;
listen 443 ssl;
server_name analytics.m.yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt;
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;
location / {
proxy_redirect off;
proxy_pass http://yohobuy_analytics;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
proxy_set_header http_referer $http_referer;
}
}
\ No newline at end of file
... ...
server
{
listen 80;
server_name m.yohobuy.com nginx1.m.yohobuy.com;
access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi;
error_log /Data/logs/error_wap.yohobuy.com.log warn;
root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;
# old idc
include vhosts/location/yohobuywap_idc.conf;
# app
include vhosts/location/yohobuywap_app.conf;
# php
include vhosts/location/yohobuywap_php.conf;
# node
#include vhosts/location/yohobuywap_node.conf;
# static file
include vhosts/location/yohobuywap_static.conf;
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 1;
location / {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
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";
}
}
server
{
listen 443;
server_name m.yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/yohobuy.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/yohobuy.key;
# https key
include vhosts/location/yohobuywap_httpskey.conf;
root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;
access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi;
error_log /Data/logs/error_wap.yohobuy.com.log warn;
# old idc
include vhosts/location/yohobuywap_idc.conf;
# app
include vhosts/location/yohobuywap_app.conf;
# php
include vhosts/location/yohobuywap_php.conf;
# node
include vhosts/location/yohobuywap_node.conf;
# static file
include vhosts/location/yohobuywap_static.conf;
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 1;
location / {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
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";
}
}
server
{
listen 80;
server_name guang.m.yohobuy.com;
access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi;
error_log /Data/logs/error_wap.yohobuy.com.log warn;
root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;
# static file
include vhosts/location/yohobuywap_static.conf;
# guang rss
location ^~ /rss {
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 / {
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";
}
}
server
{
listen 80;
server_name *.m.yohobuy.com;
access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi;
error_log /Data/logs/error_wap.yohobuy.com.log warn;
root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;
# static file
include vhosts/location/yohobuywap_static.conf;
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 1;
location / {
if ($httpsFlag = 1) {
return 301 https://$host$request_uri;
}
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";
}
}
server
{
listen 443;
server_name *.m.yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.key;
# https key
include vhosts/location/yohobuywap_httpskey.conf;
access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi;
error_log /Data/logs/error_wap.yohobuy.com.log warn;
root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;
# static file
include vhosts/location/yohobuywap_static.conf;
# idc old proxy. while login to write memcache and cookie (if need?)
location ^~ /Passport/session {
access_log /Data/logs/access.m.yohobuy.com.log fenxi;
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host mapi.yohobuy.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 "gzip";
}
# guang rss
location ^~ /rss {
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";
}
#https flag, 1 means HTTPS, 0 means HTTP
set $httpsFlag 1;
location / {
if ($httpsFlag = 0) {
return 301 http://$host$request_uri;
}
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";
}
}
server
{
listen 80;
server_name cuxiao.m.yohobuy.com;
access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi;
error_log /Data/logs/error_wap.yohobuy.com.log warn;
location / {
proxy_redirect off;
proxy_pass http://yohobuy_idc;
proxy_set_header Host cuxiao.m.yohobuy.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 "gzip";
}
}
server
{
listen 80;
listen 443 ssl;
server_name analytics.m.yohobuy.com;
error_log /Data/logs/nginx/access_m_analytics_error.log warn;
access_log /Data/logs/nginx/access_m_analytics.log fenxi;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.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;
root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;
location / {
proxy_redirect off;
proxy_pass http://yohobuy_analytics;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
proxy_set_header http_referer $http_referer;
}
}
... ...

408 Bytes | W: | H:

408 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

889 Bytes | W: | H:

889 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

309 Bytes | W: | H:

309 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin