From 217530ed123ca3f92e0b79c293e36c7138186288 Mon Sep 17 00:00:00 2001 From: Isaac McDonald Date: Mon, 5 Nov 2018 10:24:15 -0800 Subject: [PATCH] Enable lighttpd to listen on IPv6 addresses too Currently lighttpd is configured to listen ONLY on IPv4 addresses. Lighttpd should be configured to listen on both IPv4 and IPv6 addresses. --- debian/lighttpd/89-dump1090-fa.conf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/lighttpd/89-dump1090-fa.conf b/debian/lighttpd/89-dump1090-fa.conf index 287fd4f86..fb3f1a414 100644 --- a/debian/lighttpd/89-dump1090-fa.conf +++ b/debian/lighttpd/89-dump1090-fa.conf @@ -12,7 +12,7 @@ url.redirect += ( "^/dump1090-fa$" => "/dump1090-fa/" ) -# Listen on port 8080 and serve the map there, too. +# Listen on Ipv4 port 8080 and serve the map there, too. $SERVER["socket"] == ":8080" { alias.url += ( "/data/" => "/run/dump1090-fa/", @@ -20,6 +20,14 @@ $SERVER["socket"] == ":8080" { ) } +# Listen on IPv6 port 8080 and serve the map there, too. +$SERVER["socket"] == "[::]:8080" { + alias.url += ( + "/data/" => "/run/dump1090-fa/", + "/" => "/usr/share/dump1090-fa/html/" + ) +} + # Add CORS header server.modules += ( "mod_setenv" ) $HTTP["url"] =~ "^/dump1090-fa/data/.*\.json$" {