Listen on port 8080 and redirect to port 80 for backwards compatibility.

This commit is contained in:
Oliver Jowett 2016-04-11 11:58:51 +01:00
parent 5f237db650
commit 7987598a72

View file

@ -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")
}
}