...
|
...
|
@@ -23,44 +23,54 @@ server |
|
|
}
|
|
|
|
|
|
location = /reg.html {
|
|
|
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";
|
|
|
return 301 https://$server_name$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";
|
|
|
}
|
|
|
location = /signin.html {
|
|
|
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";
|
|
|
return 301 https://$server_name$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";
|
|
|
}
|
|
|
location = /login.html {
|
|
|
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";
|
|
|
return 301 https://$server_name$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";
|
|
|
}
|
|
|
location = /emailback.html {
|
|
|
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";
|
|
|
return 301 https://$server_name$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";
|
|
|
}
|
|
|
location = /phoneback.html {
|
|
|
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";
|
|
|
return 301 https://$server_name$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";
|
|
|
}
|
|
|
location = /help/shareorder.html {
|
|
|
root /Data/code/git/yohobuy/yohobuy/assets;
|
...
|
...
|
@@ -70,28 +80,34 @@ server |
|
|
expires 7d;
|
|
|
}
|
|
|
location ^~ /passport/reg {
|
|
|
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";
|
|
|
return 301 https://$server_name$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";
|
|
|
}
|
|
|
location ^~ /passport/login {
|
|
|
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";
|
|
|
return 301 https://$server_name$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";
|
|
|
}
|
|
|
location ^~ /passport/back {
|
|
|
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";
|
|
|
return 301 https://$server_name$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";
|
|
|
}
|
|
|
|
|
|
location = / {
|
...
|
...
|
@@ -364,4 +380,78 @@ server |
|
|
|
|
|
}
|
|
|
|
|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name huodong.m.yohobuy.com;
|
|
|
root /Data/PE/yohobuy/yohobuy/huodong.m.yohobuy.com/public;
|
|
|
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 ~* \.(ico|woff|svg|eot|ttf|otf)$ {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/crossdomain.xml {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/sitemap.xml {
|
|
|
expires 1d;
|
|
|
}
|
|
|
location =/robots.txt {
|
|
|
expires 1d;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
server
|
|
|
{
|
|
|
listen 443 ssl;
|
|
|
server_name login.m.yohobuy.com;
|
|
|
root /Data/PE/yohobuy/yohobuy/m.yohobuy.com/public;
|
|
|
|
|
|
ssl_certificate /home/hf/ssl/server.crt;
|
|
|
ssl_certificate_key /home/hf/ssl/server.key;
|
|
|
ssl_dhparam /home/hf/ssl/dhparams.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;
|
|
|
|
|
|
# add_header Strict-Transport-Security "max-age=31536000";
|
|
|
# add_header X-Frame-Options deny;
|
|
|
# add_header X-Content-Type-Options nosniff;
|
|
|
|
|
|
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/ {
|
|
|
root /Data/PE/yohobuy/yohobuy/static;
|
|
|
expires 30d;
|
|
|
}
|
|
|
|
|
|
location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/crossdomain.xml {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/sitemap.xml {
|
|
|
expires 1d;
|
|
|
}
|
|
|
location =/robots.txt {
|
|
|
expires 1d;
|
|
|
}
|
|
|
} |
...
|
...
|
|