Make others domains redirect with a 301
This commit is contained in:
parent
a410d16e9c
commit
b4dd769d08
@ -118,7 +118,7 @@ ssl_certificate /etc/ssl/csr/{{ domains[0] }}-fullchain.crt;
|
|||||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains;" always;
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains;" always;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
rewrite (.*) https://{{ domains[0] }}$1;
|
rewrite (.*) https://{{ domains[0] }}$1 permanent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user