aboutsummaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-07-18 15:03:05 -0400
committerJack Jamison <jackqjamison@gmail.com>2025-07-18 15:03:05 -0400
commit4ddea5809e33fd19f5bc59f2785ff03a74328438 (patch)
treeed35536c40a591fef251c50f79d5edb72a8fed17 /nginx
parentbd60a5cf3bed2a5c9f9981a41cb88d2e1e79be20 (diff)
xyz redirect2
Diffstat (limited to 'nginx')
-rw-r--r--nginx/homepage.conf19
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;
+}