Created
October 19, 2011 17:51
-
-
Save baldowl/1299102 to your computer and use it in GitHub Desktop.
Nginx, try_files and the Accept-Language header
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
location / { | |
root /my/web/site; | |
# Note (1) the '/' before $lang and (2) the lack of '/' before $uri (which | |
# already starts with '/'). | |
try_files /$lang$uri /$lang$uri.html /$lang$uri/ $uri $uri.html $uri/ =404; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment