nginx-kit/redirect/www-to-root.conf
2026-06-09 14:41:15 +08:00

5 lines
232 B
Text

# This is the inverse of root-to-www.conf. It assumes the primary server_name
# is already the apex host and only strips a single leading www. label.
if ($host = www.$server_name) {
return 307 $scheme://$server_name$request_uri;
}