Skip to content

Configuring Nginx for WebSocket and Long Polling

Lintao LI edited this page Jun 26, 2013 · 3 revisions
        map $http_upgrade $connection_upgrade {
            default Upgrade;
            ''      close;
        }

         location /chat {
            proxy_pass https://192.168.67.100:8443/chatapi;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection $connection_upgrade;
            proxy_buffering off;
            proxy_ignore_client_abort off;
            break;
        }

Step by Step Tutorials

Concepts & Architecture

15 Minutes Tutorial

Advanced Topics

API

Known WebServer Issues

References

External Documentations

githalytics.com alpha

Clone this wiki locally