Listen on port 8080 and redirect to port 80 for backwards compatibility.
This commit is contained in:
parent
5f237db650
commit
7987598a72
8
debian/lighttpd/89-dump1090-fa.conf
vendored
8
debian/lighttpd/89-dump1090-fa.conf
vendored
|
@ -11,3 +11,11 @@ alias.url += (
|
|||
# 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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue