diff --git a/assets/vhosts/drupal-ssl.nginxconf b/assets/vhosts/drupal-ssl.nginxconf index afa5a8a..54145fc 100644 --- a/assets/vhosts/drupal-ssl.nginxconf +++ b/assets/vhosts/drupal-ssl.nginxconf @@ -1,13 +1,12 @@ # https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/ # https://www.howtoforge.com/tutorial/install-letsencrypt-and-secure-nginx-in-debian-9/ server { - listen 80; + listen [::]:80; server_name DOMAIN.LTD; return 301 https://$server_name$request_uri; } server { - listen 443 ssl; listen [::]:443 ssl; server_name DOMAIN.LTD; diff --git a/assets/vhosts/drupal.nginxconf b/assets/vhosts/drupal.nginxconf index bd1e411..3886095 100644 --- a/assets/vhosts/drupal.nginxconf +++ b/assets/vhosts/drupal.nginxconf @@ -1,6 +1,6 @@ # https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/ server { - listen 80; + listen [::]:80; server_name DOMAIN.LTD; root /var/www/DOMAIN.LTD/app/web; diff --git a/assets/vhosts/simple-phpfpm-ssl.nginxconf b/assets/vhosts/simple-phpfpm-ssl.nginxconf index ea65456..ddc0122 100644 --- a/assets/vhosts/simple-phpfpm-ssl.nginxconf +++ b/assets/vhosts/simple-phpfpm-ssl.nginxconf @@ -1,13 +1,12 @@ # https://www.howtoforge.com/tutorial/install-letsencrypt-and-secure-nginx-in-debian-9/ server { - listen 80; + listen [::]:80; server_name DOMAIN.LTD; return 301 https://$server_name$request_uri; } server { - listen 443 ssl; listen [::]:443 ssl; server_name DOMAIN.LTD; diff --git a/assets/vhosts/simple-phpfpm.nginxconf b/assets/vhosts/simple-phpfpm.nginxconf index b7ee018..8341ff2 100644 --- a/assets/vhosts/simple-phpfpm.nginxconf +++ b/assets/vhosts/simple-phpfpm.nginxconf @@ -1,5 +1,5 @@ server { - listen 80; + listen [::]:80; server_name DOMAIN.LTD; root /var/www/DOMAIN.LTD/app/web;