Last active
February 13, 2018 23:51
-
-
Save homanp/4e49daedddabfa5b8321 to your computer and use it in GitHub Desktop.
Nginx Html5Mode for ReactJS
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 { | |
listen 80; | |
server_name react.dev; | |
root /app/react-demo; | |
location / { | |
include /etc/nginx/mime.types; | |
try_files $uri $uri/ /index.html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Working.