Last active
March 29, 2017 00:33
-
-
Save gabfr/5fe42012ba23d6f8e181c36314a3bf7e to your computer and use it in GitHub Desktop.
AngularJS HTML5 NGINX Configuration
This file contains 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 foobar.com www.foobar.com; | |
index index.html; | |
root /path/to/site; # i.e. /var/www/mysite | |
location / { | |
try_files $uri$args $uri$args/ $uri/ /index.html =404; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment