diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-12-16 21:15:02 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-12-16 21:15:02 +0100 |
commit | cee6d591b58db2bbb99d785252efaf0cf2795229 (patch) | |
tree | 65ba73c2bf11861df046c01e4aacffc8a2e63b15 /etc/nginx/nginx.conf | |
parent | 02127c819dbc0e0d8fdb3a6f8314fea1a4856890 (diff) | |
download | deployment-cee6d591b58db2bbb99d785252efaf0cf2795229.tar.gz deployment-cee6d591b58db2bbb99d785252efaf0cf2795229.tar.bz2 deployment-cee6d591b58db2bbb99d785252efaf0cf2795229.zip |
comment / fix slashes
Diffstat (limited to 'etc/nginx/nginx.conf')
-rw-r--r-- | etc/nginx/nginx.conf | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/etc/nginx/nginx.conf b/etc/nginx/nginx.conf index 8ac37f3..e397fed 100644 --- a/etc/nginx/nginx.conf +++ b/etc/nginx/nginx.conf @@ -53,12 +53,15 @@ http { # gzip_http_version 1.1; # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; + # This isn't entirely correct since it does + # not consider the weighting of languages, but + # for now it's good enough. map $http_accept_language $index_redirect_uri { - default "/en/"; - ~en "/en/"; - ~de "/de/"; - ~fr "/fr/"; - ~es "/it/"; + default "en"; + ~en "en"; + ~de "de"; + ~fr "fr"; + ~es "it"; } ## |