Commit updated dispatch rules from live server.
This commit is contained in:
parent
53205dbb07
commit
62847c92f5
1 changed files with 18 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue