5 lines
216 B
Text
5 lines
216 B
Text
# Keep alias canonicalization method-preserving. This is safer than 301 when a
|
|
# non-idempotent request accidentally hits an alias host.
|
|
if ($host != $server_name) {
|
|
return 307 $scheme://$server_name$request_uri;
|
|
}
|