aboutsummaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
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;
+}