From 11f009681677af560b8a7cf142206d549050bbb0 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Fri, 27 Sep 2013 19:28:07 +0000 Subject: [PATCH] More precise url handling --- server/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/nginx.conf b/server/nginx.conf index 31d9789..9d892e9 100644 --- a/server/nginx.conf +++ b/server/nginx.conf @@ -33,7 +33,7 @@ server { # Rewrite www to non-www - if ($host ~ /^www\./) { + if ($host = www.dpaste.de) { rewrite ^/(.*)$ https://dpaste.de/$1 permanent; } @@ -53,7 +53,7 @@ server { add_header Strict-Transport-Security max-age=25200; # Rewrite www to non-www - if ($host ~ /^www\./) { + if ($host = www.dpaste.org) { rewrite ^/(.*)$ https://dpaste.org/$1 permanent; }