Created
March 24, 2020 13:45
-
-
Save thiagosf/9cde5928bf158b866d4c487cf997dfa2 to your computer and use it in GitHub Desktop.
Multiple react/vue apps into nginx
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
# the magic happens here: =404 | |
server { | |
server_name domain.com; | |
index index.html; | |
location /projec1 { | |
alias /var/www/projec1; | |
try_files $uri $uri/ /index.html =404; | |
} | |
location /projec2 { | |
alias /var/www/projec2; | |
try_files $uri $uri/ /index.html =404; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment