aboutsummaryrefslogtreecommitdiff
path: root/nginx/homepage.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx/homepage.conf')
-rw-r--r--nginx/homepage.conf12
1 files changed, 4 insertions, 8 deletions
diff --git a/nginx/homepage.conf b/nginx/homepage.conf
index f5ad47d..f5784ab 100644
--- a/nginx/homepage.conf
+++ b/nginx/homepage.conf
@@ -1,6 +1,6 @@
# https server
server {
- server_name jackjamison.net ;
+ server_name jackjamison.net www.jackjamison.net ;
location / {
root /var/www/homepage;
@@ -19,13 +19,9 @@ server {
# http redirect
server {
- if ($host = jackjamison.net) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
-
listen 80 ;
listen [::]:80 ;
- server_name jackjamison.net ;
+ server_name jackjamison.net www.jackjamison.net ;
- return 404; # managed by Certbot
-} \ No newline at end of file
+ return 301 https://$host$request_uri;
+}