Skip to content

Instantly share code, notes, and snippets.

@phuonghuynh
Created January 9, 2015 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phuonghuynh/7d2f9c7ea5fd9ab04cef to your computer and use it in GitHub Desktop.
Save phuonghuynh/7d2f9c7ea5fd9ab04cef to your computer and use it in GitHub Desktop.
Nginx Configuration support Web Socket handshake
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