Created
June 30, 2016 18:34
-
-
Save nma/ae37618ea76f4d08b58f5b3729b6e836 to your computer and use it in GitHub Desktop.
Nginx config for use with ember HISTORYLOCATION
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
useful for react-router applications hosted on an Nginx Docker Container.
sample docker file