Defect #11147
openrelative_url_root changes only css... , but not dynamic pages
0%
Description
I try to follow the instructions at http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI and have a local redmine installation serving at port 3000 with a URL prefix /redmine2. Later on I want to proxy this server via apache to /redmine2 on port 80.
Setting the relative_url_root to /redmine2 results in a "Redmine 404 error" page for the URL: http://localhost:3000/redmine2/ (Browser Cache is disabled).
Calling http://localhost:3000/ results in a "correct" page without layout... looking at the source:
All of the java script, atom and css links seem to be prefixed correctly with /redmine2, but not found there.
Sadly the redmine pages related links (like /projects, /my/page or /admin) are not prefixed.
I don't know how to make use of this behaviour. So I feel a bit "lost" (as promised in the opening paragraph of the HowTo).
This is the config/environment.rb file
# Load the rails application
require File.expand_path('../application', __FILE__)
# Make sure there's no plugin in vendor/plugin before starting
vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins")
if Dir.glob(File.join(vendor_plugins_dir, "*")).any?
$stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " +
"Please, put your Redmine plugins in the `plugins` directory at the root of your " +
"Redmine directory (#{File.join(Rails.root, "plugins")})"
exit 1
end
# Initialize the rails application
RedmineApp::Application.initialize!
Redmine::Utils::relative_url_root = "/redmine2"
restarting with mongrel:
#> ruby redmine-2.0/script/rails server mongrel -d -e production -p 3000 => Booting Mongrel => Rails 3.2.5 application starting in production on http://0.0.0.0:3000
Some version infos (as provided on the Admin->Information page)
Environment: Redmine version 2.0.2.stable.9774 Ruby version 1.8.7 (x86_64-linux) Rails version 3.2.5 Environment production Database adapter MySQL Redmine plugins: no plugin installed
Files
Related issues