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?


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)

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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