天天看點

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;

}

熬夜不易,點選請老王喝杯烈酒!!!!!!!