diff --git a/nginx/custom_website_subdomain.sh b/nginx/custom_website_subdomain.sh index 1d06ffc..18a9608 100644 --- a/nginx/custom_website_subdomain.sh +++ b/nginx/custom_website_subdomain.sh @@ -28,6 +28,7 @@ sudo certbot certonly -a standalone -m $EMAIL --agree-tos \ # add to /etc/nginx/sites-available/ echo "\ server { + listen 80; listen 443 ssl; server_name $SUBDOMAIN; diff --git a/nginx/https_redirect_to_subdomain.sh b/nginx/https_redirect_to_subdomain.sh index 15cbe83..d8351a5 100644 --- a/nginx/https_redirect_to_subdomain.sh +++ b/nginx/https_redirect_to_subdomain.sh @@ -30,6 +30,7 @@ sudo certbot certonly -a standalone -m $EMAIL --agree-tos \ echo "\ server { + listen 80; listen 443 ssl; server_name SUBDOMAIN; return 301 $REDIRECT; diff --git a/nginx/mempool_subdomain.sh b/nginx/mempool_subdomain.sh index a6bfe62..f6ca230 100644 --- a/nginx/mempool_subdomain.sh +++ b/nginx/mempool_subdomain.sh @@ -29,6 +29,7 @@ sudo certbot certonly -a standalone -m $EMAIL --agree-tos \ echo "\ server { + listen 80; listen 443 ssl; server_name $SUBDOMAIN;