diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-07-18 15:03:05 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-07-18 15:03:05 -0400 |
| commit | 4ddea5809e33fd19f5bc59f2785ff03a74328438 (patch) | |
| tree | ed35536c40a591fef251c50f79d5edb72a8fed17 /nginx/homepage.conf | |
| parent | bd60a5cf3bed2a5c9f9981a41cb88d2e1e79be20 (diff) | |
xyz redirect2
Diffstat (limited to 'nginx/homepage.conf')
| -rw-r--r-- | nginx/homepage.conf | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/nginx/homepage.conf b/nginx/homepage.conf index f5784ab..3bffb04 100644 --- a/nginx/homepage.conf +++ b/nginx/homepage.conf @@ -19,9 +19,24 @@ server { # http redirect server { - listen 80 ; listen [::]:80 ; - server_name jackjamison.net www.jackjamison.net ; + listen 80 ; + server_name jackjamison.net *.jackjamison.net ; return 301 https://$host$request_uri; } + + +### jackjamison.xyz redirect + +# https +server { + server_name jackjamison.xyz *.jackjamison.xyz ; + + listen [::]:80 ; + listen 80 ; + listen [::]:443 ssl; + listen 443 ssl; + + return 301 https://jackjamison.net; +} |
