|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name huodong.m.yohobuy.com;
|
|
|
root /Data/code/git/yohobuy/yohobuy/huodong.m.yohobuy.com/public;
|
|
|
access_log /Data/logs/access.huodong.m.yohobuy.com.log combined;
|
|
|
error_log /Data/logs/nginx/error.huodong.m.yohobuy.com.log warn;
|
|
|
location / {
|
|
|
root /Data/code/git/yohobuy/yohobuy/huodong.m.yohobuy.com/public;
|
|
|
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 80;
|
|
|
server_name static.buy.test.yoho.cn;
|
|
|
root /Data/code/git/yohobuy/static;
|
|
|
|
|
|
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 80;
|
|
|
server_name m.yohobuy.com;
|
|
|
|
|
|
#access_log /Data/logs/access.buy.test.yoho.cn.log combined;
|
|
|
error_log /Data/logs/nginx/error.m.yohobuy.com.log warn;
|
|
|
|
|
|
root /Data/code/git/yohobuy/yohobuy/m.yohobuy.com/public;
|
|
|
|
|
|
location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/crossdomain.xml {
|
|
|
expires 7d;
|
|
|
}
|
|
|
location =/sitemap.xml {
|
|
|
expires 1d;
|
|
|
}
|
|
|
location =/robots.txt {
|
|
|
expires 1d;
|
|
|
}
|
|
|
|
|
|
# login and register 301 redirect to https
|
|
|
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";
|
|
|
}
|
|
|
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";
|
|
|
}
|
|
|
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";
|
|
|
}
|
|
|
|
|
|
location = /coupon/index {
|
|
|
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 =/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":"1231231231231","data":{"ae":"e0323a9039add2978bf5b49550572c7c","url":"http://m.yohobuy.com","tl":"7ea6bdf07376a928c5d4677789c45463","rp":"62a165d59f8daf42e2df5f3c5aed8a2f","bv":"94931e4a3036baeecdacb975e10a8ec6","dl":"5b2d8b4b242e067616c6cd98851b2306"}}';
|
|
|
}
|
|
|
|
|
|
# 一些静态页面有关
|
|
|
location = /help/shareorder.html {
|
|
|
root /Data/code/git/yohobuy/assets;
|
|
|
expires 7d;
|
|
|
}
|
|
|
location = /emailback.html {
|
|
|
root /Data/code/git/yohobuy/assets;
|
|
|
expires 7d;
|
|
|
}
|
|
|
location = /phoneback.html {
|
|
|
root /Data/code/git/yohobuy/assets;
|
|
|
expires 7d;
|
|
|
}
|
|
|
location = /error.html {
|
|
|
root /Data/code/git/yohobuy/assets;
|
|
|
expires 7d;
|
|
|
}
|
|
|
|
|
|
location ^~ /dist/ {
|
|
|
proxy_redirect off;
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
proxy_pass http://cdn.yoho.cn/;
|
|
|
}
|
|
|
|
|
|
# location / {
|
|
|
# return 301 https://m.yohobuy.com$request_uri;
|
|
|
# }
|
|
|
|
|
|
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 =/invite.html {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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/ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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_ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
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";
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name search.yohoops.org testing.yohoops.org searchyohoops.yohobuy.com;
|
|
|
location / {
|
|
|
proxy_pass http://192.168.102.216:8080/;
|
|
|
proxy_redirect off;
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
|
}
|
|
|
}
|
|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name *.m.yohobuy.com;
|
|
|
|
|
|
#access_log /Data/logs/access.buy.test.yoho.cn.log combined;
|
|
|
error_log /Data/logs/nginx/error.m.yohobuy.com.log warn;
|
|
|
|
|
|
root /Data/code/git/yohobuy/yohobuy/m.yohobuy.com/public;
|
|
|
|
|
|
location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/crossdomain.xml {
|
|
|
expires 7d;
|
|
|
}
|
|
|
location =/sitemap.xml {
|
|
|
expires 1d;
|
|
|
}
|
|
|
location =/robots.txt {
|
|
|
expires 1d;
|
|
|
}
|
|
|
|
|
|
location = /error.html {
|
|
|
root /Data/code/git/yohobuy/assets;
|
|
|
expires 7d;
|
|
|
}
|
|
|
|
|
|
location ^~ /Passport/session {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://192.168.50.69;
|
|
|
proxy_set_header Host m1.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 / {
|
|
|
# return 301 https://$host$request_uri;
|
|
|
# }
|
|
|
#
|
|
|
|
|
|
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 443;
|
|
|
# server_name m.yohobuy.com;
|
|
|
# ssl on;
|
|
|
# ssl_certificate /Data/local/nginx-1.8.0/ssl/server.crt;
|
|
|
# ssl_certificate_key /Data/local/nginx-1.8.0/ssl/server.key;
|
|
|
# root /Data/code/git/yohobuy/yohobuy/m.yohobuy.com/public;
|
|
|
|
|
|
# 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":"1231231231231","data":{"ae":"e0323a9039add2978bf5b49550572c7c","url":"http://m.yohobuy.com","tl":"7ea6bdf07376a928c5d4677789c45463","rp":"62a165d59f8daf42e2df5f3c5aed8a2f","bv":"94931e4a3036baeecdacb975e10a8ec6"}}';
|
|
|
# }
|
|
|
|
|
|
# location = /help/shareorder.html {
|
|
|
# root /Data/code/git/yohobuy/assets;
|
|
|
# expires 7d;
|
|
|
# }
|
|
|
# location = /emailback.html {
|
|
|
# root /Data/code/git/yohobuy/assets;
|
|
|
# expires 7d;
|
|
|
# }
|
|
|
# location = /phoneback.html {
|
|
|
# root /Data/code/git/yohobuy/assets;
|
|
|
# expires 7d;
|
|
|
# }
|
|
|
# location = /error.html {
|
|
|
# root /Data/code/git/yohobuy/assets;
|
|
|
# expires 7d;
|
|
|
# }
|
|
|
|
|
|
# # login and register 301 redirect to https
|
|
|
# location = /reg.html {
|
|
|
# return 301 https://login.m.yohobuy.com$request_uri;
|
|
|
# }
|
|
|
# location = /signin.html {
|
|
|
# return 301 https://login.m.yohobuy.com$request_uri;
|
|
|
# }
|
|
|
# location = /login.html {
|
|
|
# return 301 https://login.m.yohobuy.com$request_uri;
|
|
|
# }
|
|
|
|
|
|
# location ^~ /Passport/session {
|
|
|
# proxy_redirect off;
|
|
|
# proxy_pass http://192.168.50.69;
|
|
|
# proxy_set_header Host m1.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 / {
|
|
|
# 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;
|
|
|
# server_name *.m.yohobuy.com;
|
|
|
# ssl on;
|
|
|
# ssl_certificate /Data/local/nginx-1.8.0/ssl/server.crt;
|
|
|
# ssl_certificate_key /Data/local/nginx-1.8.0/ssl/server.key;
|
|
|
# root /Data/code/git/yohobuy/yohobuy/m.yohobuy.com/public;
|
|
|
|
|
|
# location = /error.html {
|
|
|
# root /Data/code/git/yohobuy/assets;
|
|
|
# expires 7d;
|
|
|
# }
|
|
|
|
|
|
# location ^~ /Passport/session {
|
|
|
# proxy_redirect off;
|
|
|
# proxy_pass http://192.168.50.69;
|
|
|
# proxy_set_header Host m1.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 / {
|
|
|
# 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 80;
|
|
|
server_name analytics.m.yohobuy.com;
|
|
|
|
|
|
location / {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://analytics.yhurl.com;
|
|
|
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;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|