Skip to content

Instantly share code, notes, and snippets.

@charliepage88
Created March 2, 2018 18:03
Show Gist options
  • Save charliepage88/c3463355cd5a69bb40cb5ce190a21984 to your computer and use it in GitHub Desktop.
Save charliepage88/c3463355cd5a69bb40cb5ce190a21984 to your computer and use it in GitHub Desktop.
booking vhost
upstream booking_ws_server {
server 127.0.0.1:8000;
}
server {
listen 80;
listen [::]:80;
root /var/www/vhosts/Work/roam-dev-env/repos/booking/dist;
index index.html;
server_name booking.meetatroam.test;
location ^~ /avatars {
# URLs to attempt, including pretty ones.
root /var/www/vhosts/Work/roam-dev-env/repos/accounts/public/storage;
try_files $uri $uri/ /index.php?$query_string;
}
location / {
proxy_pass http://booking_ws_server/;
proxy_redirect off;
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