<Location /redmine>
ProxyPass http://localhost:3000
ProxyPassReverse http://localhost:3000/
</Location>
然后,配置
additional_environment.rb
文件中
config.action_controller.relative_url_root = '/redmine'
这样基本就可以了,但是,还是有些问题,就是,css如果使用'/'开头,
那么就会被解释为相对的绝对路径,同样无法显示。
继续寻找一劳永逸的办法~