|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name m.yohobuy.com *.m.yohobuy.com nginx1.m.yohobuy.com;
|
|
|
|
|
|
access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi;
|
|
|
error_log /Data/logs/error.mtesth5.yohobuy.com.log warn;
|
|
|
|
|
|
root /Data/PE/yohobuy/yohobuy/m.yohobuy.com/public;
|
|
|
|
|
|
# APP相关
|
|
|
location = /appembed {
|
|
|
default_type application/json;
|
|
|
return 200 '{"code":200,"message":"app embed","data":{"open":"N","url":"http://m.yohobuy.com"}}';
|
|
|
}
|
|
|
location = /help/shareorder.html {
|
|
|
root /Data/code/git/yohobuy/yohobuy/assets;
|
|
|
expires 7d;
|
|
|
}
|
|
|
|
|
|
# 错误页面
|
|
|
location = /error.html {
|
|
|
root /Data/PE/yohobuy/assets;
|
|
|
expires 7d;
|
|
|
}
|
|
|
|
|
|
# 账户相关
|
|
|
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 = /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";
|
|
|
}
|
|
|
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";
|
|
|
}
|
|
|
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";
|
|
|
}
|
|
|
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";
|
|
|
}
|
|
|
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";
|
|
|
}
|
|
|
|
|
|
# 频道相关
|
|
|
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 = /boys {
|
|
|
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 = /girls {
|
|
|
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 = /kids {
|
|
|
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 = /lifestyle {
|
|
|
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 = /girl {
|
|
|
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 = /boys/bottomBanner {
|
|
|
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 = /girls/bottomBanner {
|
|
|
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 = /cate {
|
|
|
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 = /brands {
|
|
|
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 = /sale {
|
|
|
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 = /brands/search {
|
|
|
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/new {
|
|
|
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/newsale/ {
|
|
|
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/opt/ {
|
|
|
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/recom/ {
|
|
|
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/pro_ {
|
|
|
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/intro_ {
|
|
|
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/detail/ {
|
|
|
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 = /hotrank {
|
|
|
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 ^~ /guang/ {
|
|
|
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 ^~ /tags/index {
|
|
|
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 ^~ /author/index {
|
|
|
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 ^~ /info/index {
|
|
|
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 ^~ /info/mini {
|
|
|
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 ^~ /plustar {
|
|
|
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 ^~ /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 ^~ /search {
|
|
|
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 ^~ /index/search {
|
|
|
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 ^~ /home {
|
|
|
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 ^~ /home/message {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://61.155.222.163;
|
|
|
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/detail {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://119.254.81.245;
|
|
|
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://119.254.81.245;
|
|
|
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 / {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://119.254.81.245;
|
|
|
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 ~* \.(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 sale.m.yohobuy.com;
|
|
|
|
|
|
location / {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://119.254.81.245;
|
|
|
proxy_set_header Host sale.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 cuxiao.m.yohobuy.com;
|
|
|
location / {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://101.201.176.121;
|
|
|
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;
|
|
|
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;
|
|
|
}
|
|
|
} |
...
|
...
|
|