Browse Source

added support for ipv6 on nginx confs

bach 3 years ago
parent
commit
bdb69186f3

+ 1 - 2
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;

+ 1 - 1
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;
 

+ 1 - 2
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;

+ 1 - 1
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;