http://www.iteye.com/wiki/rails_deployment/1299-lighttpd-and-ror-installation-configuration-troubleshooting#1502 补充: 对于 Rails 2.3.8,Robbin提到的下面的配置无效, class ActionController::AbstractRequest def relative_url_root '/myapp' end end 改成: ActionController::Base.relative_url_root = '/hello'