prefermall 2015-09-25
upstreamtomcat{
serverlocalhost:8080;
}
server{
listen8090;
server_namelocalhost;
access_logoff;
rootchannel;
location~*\.(css|js){
expires1y;
}
location/Channel/{
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;
proxy_passhttp://tomcat;
}
location/{
expires-1;
try_files$uri$uri//index.html=404;
}
}