add web-other-nginx-conf
Showing
6 changed files
with
135 additions
and
0 deletions
@@ -204,4 +204,9 @@ http | @@ -204,4 +204,9 @@ http | ||
204 | include vhosts/yohobuypc.conf; | 204 | include vhosts/yohobuypc.conf; |
205 | include vhosts/yohobuywap.conf; | 205 | include vhosts/yohobuywap.conf; |
206 | include vhosts/yohoglobalbs.conf; | 206 | include vhosts/yohoglobalbs.conf; |
207 | + include vhosts/badjs.yoho.cn.conf; | ||
208 | + include vhosts/ali-report.yohobuy.com.conf; | ||
209 | + include vhosts/cprice.yohobuy.com.conf; | ||
210 | + include vhosts/nwtm.yohobuy.com.conf; | ||
211 | + include vhosts/yohoblk.com.conf; | ||
207 | } | 212 | } |
1 | + server { | ||
2 | + listen 80; | ||
3 | + server_name ali-report.yohobuy.com; | ||
4 | + | ||
5 | + #charset koi8-r; | ||
6 | + | ||
7 | + access_log /Data/logs/nginx/access.ali-report.yohobuy.com.log fenxi; | ||
8 | + error_log /Data/logs/nginx/error.ali-report.yohobuy.com.log error; | ||
9 | + | ||
10 | + # nginx status check | ||
11 | + location = /status_check { | ||
12 | + default_type text/html; | ||
13 | + return 200 'ali-report.yohobuy.com server is ok!'; | ||
14 | + } | ||
15 | + | ||
16 | + location / { | ||
17 | + proxy_redirect off; | ||
18 | + proxy_pass http://yoho-web-new-inner; | ||
19 | + proxy_set_header Host $host; | ||
20 | + proxy_set_header X-Real-IP $http_x_forwarded_for; | ||
21 | + proxy_set_header X-Yoho-Real-IP $http_x_forwarded_for; | ||
22 | + proxy_set_header X-Forwarded-For $http_x_forwarded_for; | ||
23 | + proxy_set_header Accept-Encoding "gzip"; | ||
24 | + } | ||
25 | + | ||
26 | + } |
1 | + server { | ||
2 | + listen 80; | ||
3 | + server_name badjs.yoho.cn; | ||
4 | + | ||
5 | + #charset koi8-r; | ||
6 | + | ||
7 | + access_log /Data/logs/nginx/access.badjs.yoho.cn.log fenxi; | ||
8 | + error_log /Data/logs/nginx/error.badjs.yoho.cn.log error; | ||
9 | + | ||
10 | + # nginx status check | ||
11 | + location = /status_check { | ||
12 | + default_type text/html; | ||
13 | + return 200 'badjs.yoho.cn server is ok!'; | ||
14 | + } | ||
15 | + | ||
16 | + location / { | ||
17 | + proxy_redirect off; | ||
18 | + proxy_pass http://yoho-web-new-inner; | ||
19 | + proxy_set_header Host $host; | ||
20 | + proxy_set_header X-Real-IP $http_x_forwarded_for; | ||
21 | + proxy_set_header X-Yoho-Real-IP $http_x_forwarded_for; | ||
22 | + proxy_set_header X-Forwarded-For $http_x_forwarded_for; | ||
23 | + proxy_set_header Accept-Encoding "gzip"; | ||
24 | + } | ||
25 | + | ||
26 | + } |
1 | + server { | ||
2 | + listen 80; | ||
3 | + server_name cprice.yohobuy.com; | ||
4 | + | ||
5 | + #charset koi8-r; | ||
6 | + | ||
7 | + access_log /Data/logs/nginx/access.cprice.yohobuy.com.log fenxi; | ||
8 | + error_log /Data/logs/nginx/error.cprice.yohobuy.com.log error; | ||
9 | + | ||
10 | + # nginx status check | ||
11 | + location = /status_check { | ||
12 | + default_type text/html; | ||
13 | + return 200 'cprice.yohobuy.com server is ok!'; | ||
14 | + } | ||
15 | + | ||
16 | + location / { | ||
17 | + proxy_redirect off; | ||
18 | + proxy_pass http://yoho-web-new-inner; | ||
19 | + proxy_set_header Host $host; | ||
20 | + proxy_set_header X-Real-IP $http_x_forwarded_for; | ||
21 | + proxy_set_header X-Yoho-Real-IP $http_x_forwarded_for; | ||
22 | + proxy_set_header X-Forwarded-For $http_x_forwarded_for; | ||
23 | + proxy_set_header Accept-Encoding "gzip"; | ||
24 | + } | ||
25 | + | ||
26 | + } |
1 | + server { | ||
2 | + listen 80; | ||
3 | + server_name nwtm.yohobuy.com; | ||
4 | + | ||
5 | + #charset koi8-r; | ||
6 | + | ||
7 | + access_log /Data/logs/nginx/access.nwtm.yohobuy.com.log fenxi; | ||
8 | + error_log /Data/logs/nginx/error.nwtm.yohobuy.com.log error; | ||
9 | + | ||
10 | + # nginx status check | ||
11 | + location = /status_check { | ||
12 | + default_type text/html; | ||
13 | + return 200 'nwtm.yohobuy.com server is ok!'; | ||
14 | + } | ||
15 | + | ||
16 | + location / { | ||
17 | + proxy_redirect off; | ||
18 | + proxy_pass http://yoho-web-new-inner; | ||
19 | + proxy_set_header Host $host; | ||
20 | + proxy_set_header X-Real-IP $http_x_forwarded_for; | ||
21 | + proxy_set_header X-Yoho-Real-IP $http_x_forwarded_for; | ||
22 | + proxy_set_header X-Forwarded-For $http_x_forwarded_for; | ||
23 | + proxy_set_header Accept-Encoding "gzip"; | ||
24 | + } | ||
25 | + | ||
26 | + } |
1 | + server { | ||
2 | + listen 80; | ||
3 | + server_name m.yohoblk.com *.m.yohoblk.com; | ||
4 | + | ||
5 | + #charset koi8-r; | ||
6 | + | ||
7 | + access_log /Data/logs/nginx/access.m.yohoblk.com.log fenxi; | ||
8 | + error_log /Data/logs/nginx/error.m.yohoblk.com.log error; | ||
9 | + | ||
10 | + # nginx status check | ||
11 | + location = /status_check { | ||
12 | + default_type text/html; | ||
13 | + return 200 'm.yohoblk.com server is ok!'; | ||
14 | + } | ||
15 | + | ||
16 | + location / { | ||
17 | + proxy_redirect off; | ||
18 | + proxy_pass http://yoho-web-new-inner; | ||
19 | + proxy_set_header Host $host; | ||
20 | + proxy_set_header X-Real-IP $http_x_forwarded_for; | ||
21 | + proxy_set_header X-Yoho-Real-IP $http_x_forwarded_for; | ||
22 | + proxy_set_header X-Forwarded-For $http_x_forwarded_for; | ||
23 | + proxy_set_header Accept-Encoding "gzip"; | ||
24 | + } | ||
25 | + | ||
26 | + } |
-
Please register or login to post a comment