From a17cb2a0a08c79ee5bbe2dcd32bf6a4f24b67c09 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 21 May 2015 23:31:41 +0300 Subject: [PATCH] roles/nginx: Add initial IPv6 support to vhost template Still need to add ip6tables rules Signed-off-by: Alan Orth --- roles/nginx/templates/vhost.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/nginx/templates/vhost.conf.j2 b/roles/nginx/templates/vhost.conf.j2 index 45562cd..5b8a917 100644 --- a/roles/nginx/templates/vhost.conf.j2 +++ b/roles/nginx/templates/vhost.conf.j2 @@ -7,6 +7,7 @@ # http -> https vhost server { listen 80; + listen [::]:80; server_name {{ domain_name }} {{ domain_aliases }}; # redirect http -> https @@ -20,6 +21,7 @@ server { server { listen {% if use_https == "yes" %} 443 ssl spdy{% else %} 80{% endif %}; + listen [::]{% if use_https == "yes" %}:443 ssl spdy{% else %}:80{% endif %}; root {{ nginx_root_prefix }}/{{ domain_name }};