]> git.openstreetmap.org Git - rails.git/commitdiff
Commit updated dispatch rules from live server.
authorTom Hughes <tom@compton.nu>
Mon, 6 Oct 2008 23:27:36 +0000 (23:27 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 6 Oct 2008 23:27:36 +0000 (23:27 +0000)
config/lighttpd.conf

index 7a9e241452cc9ebf2dd80dc328e383bb7c6b4b23..b5d87f1cb6d61459a662fc53d3b9fc32411c14ab 100644 (file)
@@ -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