Created
August 31, 2015 04:11
-
-
Save 178inaba/58a358190a37ced08451 to your computer and use it in GitHub Desktop.
nginx use try_files(/ -> /index.html, /baz -> /baz.html)
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 / { | |
| root /foo/bar; | |
| index index.html index.htm; | |
| try_files $uri $uri/ $uri.html =404; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment