I have my app setup under /var/www/pcdb/ and have lighttpd appropriately configure (at least I hope) and the entries in my routes.rb to support the subdirectory setup. The app runs fine when not in a sub directory and the app home page works fine when I send the request to just /pcdb/. The production.log file shows the following error: ActionController::RoutingError (Recognition failed for "n/show/44"): The request actually being sent is for /pcdb/admin/show/44. This app works perfectly until I stick it in a sub folder. I''m totally baffled on this one, I just can''t figure it out. Software versions as follows: ubuntu server 6.0.6.1 lighttpd 1.4.11 ruby 1.8.4 rails 1.1.6 Here''s my lighttpd.conf entry for this app: $HTTP["url"] =~ "^/pcdb/" { server.document-root = "/var/www/pcdb/public/" alias.url = ( "/pcdb/" => "/var/www/pcdb/public/" ) server.error-handler-404 = "/dispatch.fcgi" server.indexfiles = ("dispatch.fcgi") fastcgi.server = (".fcgi" => ("localhost" => ("socket" => "/tmp/pcdb.socket", "min-procs" => 1, "max-procs" => 1, "bin-path" => "/var/www/pcdb/public/dispatch.fcgi", "bin-environment" => ("RAILS_ENV" => "production"), "strip-request-uri" => "/pcdb/" ))) } Also, from my routes.rb: ActionController::AbstractRequest.relative_url_root = "/pcdb" map.connect '':controller/:action/:id'' Any help is much appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---