websocket support for nginx
parent
f61ed45256
commit
b28dfd0c31
11
pong.conf
11
pong.conf
|
@ -36,13 +36,10 @@ server {
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
|
||||||
|
|
||||||
# WebSocket support (nginx 1.4)
|
# WebSocket support (nginx 1.4)
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
||||||
# Path rewriting
|
|
||||||
# rewrite /(.*) /$1 break;
|
|
||||||
|
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue