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

你可能感兴趣的:(websocket)