Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. WebSocket connection to 'ws://<ip>/sockjs/250/yxiptcqa/websocket' failed: Error during WebSocket handshake: 'Connection' header value must contain 'Upgrade'
  2.  
  3. server_tokens off;
  4.  
  5. map $http_upgrade $connection_upgrade {
  6. default upgrade;
  7. '' close;
  8. }
  9.  
  10. server {
  11. listen 80;
  12.  
  13. location / {
  14. proxy_pass http://localhost:3000;
  15. proxy_http_version 1.1;
  16. proxy_set_header Upgrade $http_upgrade;
  17. proxy_set_header Connection $connection_upgrade;
  18. proxy_set_header X-Forwarded-For $remote_addr;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement