From 3279f891ed89470b09fe9137970ca86fa5c50d5d Mon Sep 17 00:00:00 2001
From: Florian Schaal <florian@schaal-24.de>
Date: Tue, 08 Mar 2016 02:37:47 -0500
Subject: [PATCH] fixed nginx-startup errors on systems with net.ipv6.bindv6only=0

---
 install/tpl/nginx_apps.vhost.master      |    2 +-
 install/tpl/nginx_ispconfig.vhost.master |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/install/tpl/nginx_apps.vhost.master b/install/tpl/nginx_apps.vhost.master
index ddde18d..d2dc07b 100644
--- a/install/tpl/nginx_apps.vhost.master
+++ b/install/tpl/nginx_apps.vhost.master
@@ -1,6 +1,6 @@
 server {
         listen {apps_vhost_port};
-        listen [::]:{apps_vhost_port};
+        listen [::]:{apps_vhost_port} ipv6only=on;
         ssl {ssl_on};
         {ssl_comment}ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
         {ssl_comment}ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;
diff --git a/install/tpl/nginx_ispconfig.vhost.master b/install/tpl/nginx_ispconfig.vhost.master
index e45fc10..8498770 100644
--- a/install/tpl/nginx_ispconfig.vhost.master
+++ b/install/tpl/nginx_ispconfig.vhost.master
@@ -1,6 +1,6 @@
 server {
         listen {vhost_port};
-        listen [::]:{vhost_port};
+        listen [::]:{vhost_port} ipv6only=on;
 		ssl {ssl_on};
 		{ssl_comment}ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
         {ssl_comment}ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;

--
Gitblit v1.9.1