用于tomcat7下面支持websocket

<!--StartFragment -->
  server
        {
        listen       80;
        server_name  www .chineseceo.com.cn;
        location / {
              proxy_pass http://127.0.0.1:1111;
              include proxy.conf;
               proxy_http_version 1.1;
              proxy_set_header Upgrade $http_upgrade;
              proxy_set_header Connection "Upgrade";
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }

猜你喜欢

转载自baalwolf.iteye.com/blog/2223077
今日推荐