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$" {