generated from nhcarrigan/template
refactor: consolidate pure-redirect server blocks into conf.d/redirects.conf
Moves 12 redirect-only server blocks out of their mixed host files (content, aria, hikari, celestine, support, scheduling, portfolio) and into a dedicated redirects.conf. Deletes the now-empty scheduling.conf and its sites-enabled symlink.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
# Personal portfolio and vanity domains (naomi.lgbt, naomi.party, nhcarrigan.com, nhcarrigan.link, resume)
|
||||
# plus a wildcard catch-all that redirects *.naomi.lgbt → *.nhcarrigan.com.
|
||||
# Personal portfolio and vanity domains (naomi.lgbt, naomi.party, nhcarrigan.com, nhcarrigan.link, resume).
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name naomi.lgbt;
|
||||
@@ -160,16 +159,3 @@ server {
|
||||
include /etc/nginx/snippets/deny-dotfiles.conf;
|
||||
}
|
||||
|
||||
# Wildcard catch-all — must remain last so specific subdomains take priority
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name ~^(?<subdomain>.+)\.naomi\.lgbt$;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/*.naomi.lgbt/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/*.naomi.lgbt/privkey.pem;
|
||||
|
||||
location / {
|
||||
return 301 https://$subdomain.nhcarrigan.com$request_uri;
|
||||
}
|
||||
include /etc/nginx/snippets/deny-dotfiles.conf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user