Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I and some others are setting up Redmine on a Debian server running Apache. Actually, I didn't do the initial setup but I can't get ahold of the guy who did right now so I'm asking here.

We are using Phusion Passenger to serve Ruby content (I guess, I'm very inexperienced with Apache) and Redmine shows up fine, but none of the static content (css, images, js) show up, and when I try to go to myurl/redmine/images or /stylesheets, I get a 404 page which I think originates from Phusion Passenger. This seems like it should be something obvious, but I can't figure out what's wrong. There was a .htaccess file in the public directory which I renamed because someone on another site had mentioned that the .htaccess file causes problems with Phusion Passenger, but even after restarting Apache I still can't see images or stylesheets.

This server is also running our main site, written in Django and running on mod_python, as well as some PHP stuff and some other Python but non-Django stuff. The relevant section of httpd.conf is as follows:

<Location "/redmine">
    PassengerEnabled on
    SetHandler none
    PassengerAppRoot /var/www/redmine/
    RailsBaseURI    /redmine
share|improve this question
up vote 2 down vote accepted

You probably need to alias /redmine to /var/www/redmine/public, or perhaps a file-exists-conditioned local rewrite. I'm sure Google is full of "how to setup a Rails app with Passenger" guides, though, and they'll probably have more appropriate info.

share|improve this answer
Well, most of the stuff I've found assumes that you're only running redmine on your server, which is a stupid assumption. I'll try that though. – Ibrahim Aug 21 '09 at 1:15
Actually, I guess manually adding aliases for each of the static directories worked. It seems hackish though, but working is better than nothing. – Ibrahim Aug 21 '09 at 4:04
you're absolutely right - install your redmine app outside the DocumentRoot, and add a symlink to the redmine public directory from inside Apache. Its a common issue - Apache serves html/mod_xyz pages inside the document root, and cannot figure out whether it should use one module or another. Passenger doesn't work as transparently as mod_php for example, so you have to split the 2 areas apart. – gbjbaanb May 28 '10 at 23:14

You have to specify the /public folder inside Redmine as DocumentRoot. The following configuration works fine inside a VirtualHost directive.

DocumentRoot /var/www/redmine/public

For details see:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.