Authored by hf

code review by hf: do add 99click partner analysis code and add login,cart to support https config

... ... @@ -364,4 +364,63 @@ server
}
server
{
listen 80;
server_name huodong.m.yohobuy.com;
root /Data/code/git/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;
server_name login.m.yohobuy.com cart.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 / {
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;
}
}
... ...
... ... @@ -453,3 +453,35 @@ server
expires 1d;
}
}
server
{
listen 443;
server_name login.m.yohobuy.com cart.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/PE/yohobuy/yohobuy/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;
}
}
... ...