update
This commit is contained in:
parent
cb97070442
commit
f04c14116d
3 changed files with 19 additions and 3 deletions
|
|
@ -0,0 +1,9 @@
|
|||
set $root_domain "";
|
||||
|
||||
if ($server_name ~* ^www\.(?<apex_domain>.+)$) {
|
||||
set $root_domain $apex_domain;
|
||||
}
|
||||
|
||||
if ($host = $root_domain) {
|
||||
return 307 $scheme://$server_name$request_uri;
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
if ($host = www.$server_name) {
|
||||
return 307 $scheme://$server_name$request_uri;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue