From 802f1f94042d879742a97bcdd278e91bee2a9395 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 22 Sep 2016 16:49:23 +0100 Subject: [PATCH] Add a redirect for map URLs with no trailing slash --- debian/lighttpd/89-dump1090-fa.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/lighttpd/89-dump1090-fa.conf b/debian/lighttpd/89-dump1090-fa.conf index bf02c6e..751a974 100644 --- a/debian/lighttpd/89-dump1090-fa.conf +++ b/debian/lighttpd/89-dump1090-fa.conf @@ -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" {