Add a redirect for map URLs with no trailing slash

This commit is contained in:
Oliver Jowett 2016-09-22 16:49:23 +01:00
parent cfb02c1a7c
commit 802f1f9404

View file

@ -7,6 +7,11 @@ alias.url += (
"/dump1090-fa/" => "/usr/share/dump1090-fa/html/"
)
# redirect the slash-less URL
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
$SERVER["socket"] == ":8080" {