From 95c9656fc89384c6161ac5d46ea681388c0469e6 Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Wed, 27 Nov 2013 02:01:58 +0100 Subject: [PATCH] nginx vhost ipv6 compatibility IPv6 Compatibility (Nginx Default Site is IPv6 compatible, resulting in not-working vhosts when AAAA DNS entry is set) --- plugins/nginx-vhosts/post-deploy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/nginx-vhosts/post-deploy b/plugins/nginx-vhosts/post-deploy index ee3f440f3..824eb6915 100755 --- a/plugins/nginx-vhosts/post-deploy +++ b/plugins/nginx-vhosts/post-deploy @@ -24,12 +24,14 @@ if [[ -f "$DOKKU_ROOT/VHOST" ]]; then cat< $DOKKU_ROOT/$APP/nginx.conf upstream $APP { server 127.0.0.1:$PORT; } server { + listen [::]:80; listen 80; server_name $hostname; return 301 https://\$host\$request_uri; } server { + listen [::]:443; listen 443; server_name $hostname; @@ -60,6 +62,7 @@ else cat< $DOKKU_ROOT/$APP/nginx.conf upstream $APP { server 127.0.0.1:$PORT; } server { + listen [::]:80; listen 80; server_name $hostname; location / {