location / {
proxy_pass http://lu;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
lu.aabb.com/mobile访问的是linux目录 /mystatic/mobile/index.html,这个/mobile最好不要是上面tomcate中的项目路径
location /mobile {
alias /mystatic/mobile/;
index index.html;
}
sbin/nginx -s reload