diff options
Diffstat (limited to 'nginx')
| -rw-r--r-- | nginx/homepage-testing.conf | 2 | ||||
| -rw-r--r-- | nginx/homepage.conf | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/nginx/homepage-testing.conf b/nginx/homepage-testing.conf index dce9389..8b308c5 100644 --- a/nginx/homepage-testing.conf +++ b/nginx/homepage-testing.conf @@ -2,7 +2,7 @@ server { listen 80 ; listen [::]:80 ; - server_name jackjamison.xyz; + server_name jackjamison.net; location / { root /var/www/homepage; diff --git a/nginx/homepage.conf b/nginx/homepage.conf index dc99ab9..f5ad47d 100644 --- a/nginx/homepage.conf +++ b/nginx/homepage.conf @@ -1,6 +1,6 @@ # https server server { - server_name jackjamison.xyz ; + server_name jackjamison.net ; location / { root /var/www/homepage; @@ -10,8 +10,8 @@ server { listen [::]:443 ssl ipv6only=on; # managed by Certbot listen 443 ssl; # managed by Certbot - ssl_certificate /etc/letsencrypt/live/jackjamison.xyz/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/jackjamison.xyz/privkey.pem; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/jackjamison.net/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/jackjamison.net/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot @@ -19,13 +19,13 @@ server { # http redirect server { - if ($host = jackjamison.xyz) { + if ($host = jackjamison.net) { return 301 https://$host$request_uri; } # managed by Certbot listen 80 ; listen [::]:80 ; - server_name jackjamison.xyz ; + server_name jackjamison.net ; return 404; # managed by Certbot }
\ No newline at end of file |
