Skip to content

Instantly share code, notes, and snippets.

@yusupova
Created March 25, 2017 19:06
Show Gist options
  • Select an option

  • Save yusupova/075c6cdd17e3a970ad801c46df252b35 to your computer and use it in GitHub Desktop.

Select an option

Save yusupova/075c6cdd17e3a970ad801c46df252b35 to your computer and use it in GitHub Desktop.
Error during WebSocket handshake: Unexpected response code: 400
location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
# Usually it only needs to add these lines, as we probably have other ones been set
#
# 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