Created
March 2, 2018 18:03
-
-
Save charliepage88/c3463355cd5a69bb40cb5ce190a21984 to your computer and use it in GitHub Desktop.
booking vhost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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