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;
}

 
原文地址:https://www.cnblogs.com/wxd0108/p/4717299.html