Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a RoR application that runs in /var/rails/redmine, and would like it to appear as a subdirectory in my Apache server (primarily so I can use a SSL certificate and not muck around with subdomains).

My httpd.conf currently has a <VirtualHost> directive with the DocumentRoot set to the Redmine install; this works fine when I use redmine.www2.domain.com as the url. I'd like to be able to use www2.domain.com/redmine, but am unable to get the alias to work.

I've tried adding an Alias /redmine /var/rails/redmine/public line to the config in a few places, but so far it only gives me errors (usually cannot access directory) when I go to the path. I've seen a few references to having to set some other paths for mod_passenger, but I'm unable to find information on how that works exactly.

Is there a way to give the RoR app an alias and have it appear to be in a subdirectory, or should I actually move it there, or is there a better solution?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You will have to use some connector like mod_ruby, cgi or fcgi to access your rails application.

See this link for further documentation (Based on ubuntu linux)

share|improve this answer
Stage one went smooooothly. Thanks for the guide (and +2 for the avvy ;). –  ssube Jul 20 '11 at 14:55
Is thin a connector? –  Shamoon Oct 26 '12 at 19:31

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.