Last active
February 20, 2021 13:08
-
-
Save givanse/fb99c7e68159e16539dc to your computer and use it in GitHub Desktop.
Nginx + Ember
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
server { | |
root /var/www/{Your App Directory Path Here}; | |
index index.html index.htm; | |
server_name {Your website URL or IP address here}; | |
location / { | |
try_files $uri $uri/ /index.html?/$request_uri; | |
} | |
} |
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
location ~* ^/([A-Za-z0-9-]*)((?:/[A-Za-z0-9-]+)+)$ { | |
try_files $uri /$1/index.html?/$2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for custom rootUrl
build app into /dir/app1
or
config\environment.js