Skip to content

Commit d1fac58

Browse files
authored
Use configured default page also for IPv6
Just a small check for the ipv6 variable, similar to _listen.conf, so that the configured default page is also delivered on ipv6 requests.
1 parent 8cb44c7 commit d1fac58

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backend/templates/default.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
{%- else %}
77
server {
88
listen 80 default;
9+
{% if ipv6 -%}
10+
listen [::]:80;
11+
{% else -%}
12+
#listen [::]:80;
13+
{% endif %}
914
server_name default-host.localhost;
1015
access_log /data/logs/default_host.log combined;
1116
{% include "_exploits.conf" %}

0 commit comments

Comments
 (0)