...
|
...
|
@@ -4,6 +4,7 @@ server |
|
|
server_name *.yohobuy.com;
|
|
|
root /Data/code/git/web/yohobuy/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
|
...
|
...
|
@@ -34,14 +35,12 @@ server |
|
|
listen 443;
|
|
|
server_name *.yohobuy.com;
|
|
|
|
|
|
/Data/local/nginx-1.8.0/conf/ssl/pc/server.key
|
|
|
/Data/local/nginx-1.8.0/conf/ssl/pc/server.pem crt
|
|
|
|
|
|
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;
|
|
|
|
|
|
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
|
|
|
error_log /Data/logs/error.pc.yohobuy.com.log warn;
|
|
|
|
|
|
# static file
|
...
|
...
|
@@ -57,13 +56,13 @@ server |
|
|
return 301 https://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_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;
|
...
|
...
|
@@ -76,6 +75,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 / {
|
...
|
...
|
@@ -95,6 +95,9 @@ server |
|
|
server_name huodong.yohobuy.com;
|
|
|
root /Data/code/git/web/yohobuy/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;
|
|
|
proxy_pass http://yohobuy-pc;
|
...
|
...
|
@@ -122,9 +125,11 @@ 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;
|
|
|
|
|
|
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;
|
|
|
|
|
|
location ^~ /cuxiao {
|
...
|
...
|
@@ -155,8 +160,10 @@ server |
|
|
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;
|
|
|
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;
|
|
|
|
|
|
error_log /Data/logs/error_pc.yohobuy.com.log warn;
|
|
|
|
|
|
location = / {
|
|
|
return 301 https://www.yohobuy.com/;
|
...
|
...
|
|