[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-deployment] branch master updated: nginx: taler.net:
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-deployment] branch master updated: nginx: taler.net: redirect based on accept-language header |
Date: |
Fri, 20 Jan 2017 00:07:52 +0100 |
This is an automated email from the git hooks/post-receive script.
tg pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 57c4964 nginx: taler.net: redirect based on accept-language header
57c4964 is described below
commit 57c49643fd49b3ff9a0a04fc88587bf5cadcfe9e
Author: tg(x) <address@hidden>
AuthorDate: Fri Jan 20 00:09:33 2017 +0100
nginx: taler.net: redirect based on accept-language header
---
etc/nginx/sites-enabled/www-ssl.site | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/etc/nginx/sites-enabled/www-ssl.site
b/etc/nginx/sites-enabled/www-ssl.site
index 13e5864..f4731c1 100644
--- a/etc/nginx/sites-enabled/www-ssl.site
+++ b/etc/nginx/sites-enabled/www-ssl.site
@@ -11,6 +11,10 @@ server {
location = / {
rewrite_by_lua '
+ if ngx.var.http_accept_language == nil then
+ ngx.redirect("/en/")
+ end
+
for lang in (ngx.var.http_accept_language ..
","):gmatch("([^,]*),") do
if string.sub(lang, 0, 2) == "en" then
ngx.redirect("/en/")
@@ -28,6 +32,7 @@ server {
ngx.redirect("/es/")
end
end
+
ngx.redirect("/en/")
';
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-deployment] branch master updated: nginx: taler.net: redirect based on accept-language header,
gnunet <=