Skip to content Skip to navigation

Redmine in a Subdirectory

Posted by: 
Topics: 

Another day, another System Administrator problem

Problem:
Professor is requesting Redmine to run from a sub directory rather than the root location on the Web Server.

Issue:
If this was a typical issue, I would create a symbolic link under the Apache DocumentRoot that links to the location of Redmine. However, it doesn’t work with Redmine as it’s a web application that runs on Ruby on Rails.

Solution:
Searching on the web lead me to http://www.redmine.org/boards/2/topics/2244 which the User Shaun Mangelsdorf has the solution.

Here is his post.

I’ve had some luck with this config (Apache + passenger):

ServerName example.com:80
DocumentRoot /var/www/vhost/example.com

PassengerAppRoot /path/to/redmine

RailsBaseURI /redmine
Alias /redmine /path/to/redmine/public

This solution allows the use of Apache's VirtualHost configurations rather than mongrel and fastcgi.

Let me know if anyone wants a Redmine on CentOS 5.3 HowTo.