Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. user nginx;
  2. worker_processes 1;
  3.  
  4. error_log /var/log/nginx/error.log debug;
  5. pid /var/run/nginx.pid;
  6.  
  7. events {
  8. worker_connections 1024;
  9. }
  10.  
  11. http {
  12.  
  13. map $http_upgrade $connection_upgrade {
  14. default upgrade;
  15. '' close;
  16. }
  17.  
  18. upstream websocket {
  19. server myapp.onbluemix.net:80;
  20. }
  21.  
  22. server {
  23. listen 80;
  24. location / {
  25. proxy_http_version 1.1;
  26. proxy_set_header Upgrade $http_upgrade;
  27. proxy_set_header Connection $connection_upgrade;
  28. proxy_pass http://websocket;
  29. }
  30. }
  31. }
  32.  
  33. HTTP/1.1 500 Error
  34. Server: nginx/1.13.3
  35. Content-Type: text/xml
  36. Transfer-Encoding: chunked
  37. Connection: keep-alive
  38. X-Backside-Transport: FAIL FAIL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement