Created
January 9, 2015 03:22
-
-
Save phuonghuynh/7d2f9c7ea5fd9ab04cef to your computer and use it in GitHub Desktop.
Nginx Configuration support Web Socket handshake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http { | |
... | |
server { | |
... | |
location /ws { | |
proxy_pass http://127.0.0.1:8080/ws; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
} | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment