Skip to content

Instantly share code, notes, and snippets.

@Seraf
Created October 5, 2014 20:45
Show Gist options
  • Save Seraf/a69e8a65d2521991d79b to your computer and use it in GitHub Desktop.
Save Seraf/a69e8a65d2521991d79b to your computer and use it in GitHub Desktop.
Vhost to proxify LISA
server {
listen 80;
root /usr/share/nginx/html;
index index.html index.htm;
server_name lisa;
location / {
proxy_pass http://lisa:8000/;
}
location /websocket/ {
proxy_pass http://lisa:8000/websocket/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment