More precise url handling

This commit is contained in:
Martin Mahner 2013-09-27 19:28:07 +00:00
parent bf39d704d7
commit 11f0096816

View file

@ -33,7 +33,7 @@ server {
# Rewrite www to non-www # Rewrite www to non-www
if ($host ~ /^www\./) { if ($host = www.dpaste.de) {
rewrite ^/(.*)$ https://dpaste.de/$1 permanent; rewrite ^/(.*)$ https://dpaste.de/$1 permanent;
} }
@ -53,7 +53,7 @@ server {
add_header Strict-Transport-Security max-age=25200; add_header Strict-Transport-Security max-age=25200;
# Rewrite www to non-www # Rewrite www to non-www
if ($host ~ /^www\./) { if ($host = www.dpaste.org) {
rewrite ^/(.*)$ https://dpaste.org/$1 permanent; rewrite ^/(.*)$ https://dpaste.org/$1 permanent;
} }