Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. location /foo {
  2. rewrite ^/foo(.*)$ $1 break;
  3. proxy_pass http://localhost:8000;
  4. proxy_http_version 1.1;
  5. proxy_set_header Upgrade $http_upgrade;
  6. proxy_set_header Connection 'upgrade';
  7. proxy_set_header Host $http_host;
  8. proxy_cache_bypass $http_upgrade;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement