dump1090/debian/lighttpd/89-dump1090-fa.conf

22 lines
754 B
Plaintext
Raw Normal View History

# Allows access to the static files that provide the dump1090 map view,
# and also to the dynamically-generated json parts that contain aircraft
# data and are periodically written by the dump1090 daemon.
alias.url += (
"/dump1090-fa/data/" => "/run/dump1090-fa/",
"/dump1090-fa/" => "/usr/share/dump1090-fa/html/"
)
# The stat cache must be disabled, as aircraft.json changes
# frequently and lighttpd's stat cache often ends up with the
# wrong content length.
server.stat-cache-engine = "disable"
# Listen on port 8080 and emit 301s pointing to port 80
# to support the old convention of the map being on 8080
$SERVER["socket"] == ":8080" {
$HTTP["host"] =~ "^(.*):8080" {
url.redirect = ("^/(.*)" => "http://%1/dump1090-fa/$1")
}
}