diff --git a/debian/lighttpd/89-dump1090-fa.conf b/debian/lighttpd/89-dump1090-fa.conf index 751a974..287fd4f 100644 --- a/debian/lighttpd/89-dump1090-fa.conf +++ b/debian/lighttpd/89-dump1090-fa.conf @@ -12,12 +12,12 @@ url.redirect += ( "^/dump1090-fa$" => "/dump1090-fa/" ) -# Listen on port 8080 and emit 301s pointing to port 80 -# to support the old convention of the map being on 8080 +# Listen on port 8080 and serve the map there, too. $SERVER["socket"] == ":8080" { - $HTTP["host"] =~ "^(.*):8080" { - url.redirect = ("^/(.*)" => "http://%1/dump1090-fa/$1") - } + alias.url += ( + "/data/" => "/run/dump1090-fa/", + "/" => "/usr/share/dump1090-fa/html/" + ) } # Add CORS header