why I working Redmine in sub-URI,but css and js are all invalid?
Added by Sinka Lee over 14 years ago
I study from :
http://www.redmine.org/wiki/redmine/HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache
Assuming that we will be hosting Redmine under http://localhost/redmine: Edit C:\webserver\railsapps\redmine\config\environment.rb file to configure Redmine to work as a sub-URI (Apache configuration is also required and is listed later on in this document). * add the following line at the bottom of the file: Redmine::Utils::relative_url_root = "/redmine" * save and close the file.
I add [Redmine::Utils::relative_url_root = "/redmine" ] to bottom of environment.rb
http://localhost/redmine is work, and css,js'link is changed
<link href="/redmine/stylesheets/application.css?1276138841" media="all" rel="stylesheet" type="text/css" /> <script src="/redmine/javascripts/prototype.js?1276138841" type="text/javascript"></script>
looks perfect, but css and js can't find in my firebug and ie7. page like:
i don't kown why. please help me.
Replies (2)
RE: why I working Redmine in sub-URI,but css and js are all invalid? - Added by Felix Schäfer over 14 years ago
Make sure your apache config is correct, especially the chapter "Configure Apache 2.2.x as proxy to Mongrel cluster".
RE: why I working Redmine in sub-URI,but css and js are all invalid? - Added by Sinka Lee over 14 years ago
i know why that css and js are not working.
because sub-URI needs apache web service.
when i open page that use apache web service, the problem is gone, page show is ok.
thanks Felix Schäfer.