From bdb69186f3cf056bdae2d89b7f81a3e77478ff34 Mon Sep 17 00:00:00 2001 From: bach Date: Wed, 21 Apr 2021 14:38:27 +0200 Subject: [PATCH] added support for ipv6 on nginx confs --- assets/vhosts/drupal-ssl.nginxconf | 3 +-- assets/vhosts/drupal.nginxconf | 2 +- assets/vhosts/simple-phpfpm-ssl.nginxconf | 3 +-- assets/vhosts/simple-phpfpm.nginxconf | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) 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;