For this I had to
- load the alias module
- define it to use the alias
- switch the default error handler to use that alias
- change my rails app to set the relative_uri_root
put this at the end of environment.rb
ActionController::AbstractRequest.relative_url_root = “/=tango”
$HTTP[“url”] =~ “^/tango/” {
alias.url = ( “/tango/” => “/home/tango/public/” )
server.document-root = “/home/tango/public/”
static-file.exclude-extensions = ( “.fcgi”, “.scgi” )
server.error-handler-404 = “/tango/dispatch.scgi”
server.indexfiles = ( “dispatch.fcgi”, “index.html” )
scgi.server = (
“dispatch.scgi” =>
( “127.0.0.1” =>
(
“host” => “127.0.0.1”,
“port” => 9999,
“check-local” => “disable”
)
)
)
scgi.debug=0
}
Let me know if that helps you. Untested ,but it’s from my working setup.
Be sure you enable mod_alias!!!)