From: Tom Hughes Date: Mon, 6 Oct 2008 23:27:36 +0000 (+0000) Subject: Commit updated dispatch rules from live server. X-Git-Tag: live~8662 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/62847c92f5b2b7b8a2a7dcee21866287246e65cb?ds=inline Commit updated dispatch rules from live server. --- diff --git a/config/lighttpd.conf b/config/lighttpd.conf index 7a9e24145..b5d87f1cb 100644 --- a/config/lighttpd.conf +++ b/config/lighttpd.conf @@ -124,8 +124,24 @@ server.document-root = "/var/www/rails/public" # # Send everything else to the appropriate FastCGI server # -server.error-handler-404 = "/dispatch.fcgi" -$HTTP["url"] =~ "^/api/" { server.error-handler-404 = "/dispatch.api" } +$HTTP["useragent"] == "tilesAtHome" { + server.error-handler-404 = "/dispatch.tah" +} +else $HTTP["url"] =~ "^/api/0\.5/(map|trackpoints|amf|swf/trackpoints)$" { + server.error-handler-404 = "/dispatch.bulkapi" +} +else $HTTP["url"] =~ "^/api/0\.5/.*/search$" { + server.error-handler-404 = "/dispatch.bulkapi" +} +else $HTTP["url"] =~ "^/api/0\.5/" { + server.error-handler-404 = "/dispatch.api" +} +else $HTTP["url"] =~ "^/api/0\.[0-9]+/" { + url.access-deny = ("") +} +else $HTTP["url"] =~ "^/" { + server.error-handler-404 = "/dispatch.web" +} # # Configure the FastCGI servers