".js" => "application/x-javascript",
".png" => "image/png",
".swf" => "application/x-shockwave-flash",
- ".txt" => "text/plain"
+ ".txt" => "text/plain",
+ ".xml" => "text/xml"
)
+#
+# Force special MIME type for crossdomain.xml files
+#
+$HTTP["url"] =~ "/crossdomain\.xml$" {
+ mimetype.assign = ( ".xml" => "text/x-cross-domain-policy" )
+}
+
#
# Enable compression of appropriate static content
#
#
# 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