mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
More precise url handling
This commit is contained in:
parent
bf39d704d7
commit
11f0096816
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue