Nginx反向代理tomcat

location /gm {
         root html;
         proxy_pass http://localhost:8080/gm;
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP  $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         client_max_body_size 100m;
         index index.html index.htm;
}

 
posted @ 2015-08-10 10:37  _1900  阅读(353)  评论(0编辑  收藏  举报