Project

General

Profile

Redmine in a subdirectory

Added by marcob marcob over 16 years ago

Hello,

How can I install redmine under a subdirectory
like http://www.example.com/redmine ?

An Apache rewrite rule like

RewriteRule ^/redmine(.*)$ http://localhost:3000$1

doesn't do the trick... :/

Thanks


Replies (5)

RE: Redmine in a subdirectory - Added by Ph M over 16 years ago

hello!
I've got exactly the same problem and I also tried the rewriterule.
But I don't have a solution.

anybody else?

phmu

RE: Redmine in a subdirectory - Added by Nicolas Chuche over 16 years ago

What are you using to serve rails ?

If you use mongrel « mongrel_rails --prefix=/redmine » should works with this apache config :

ProxyPass /redmine http://localhost:8000/redmine
ProxyPassReverse /redmine http://localhost:8000/redmine

RE: Redmine in a subdirectory - Added by marcob marcob over 16 years ago

Seems it can be done with cgi/fastcgi (should be even faster with fastcgi).
I'll post the configuration when I'll be sure it works.

Didn't try mongrel. Is it faster than fastcgi?

RE: Redmine in a subdirectory - Added by Nicolas Chuche over 16 years ago

Don't know if it's faster. It seems the « good way » (as far as such way exists) is to use passenger (http://www.modrails.com/).

By the way, it should be doable with fastcgi but don't know how.

RE: Redmine in a subdirectory - Added by Shaun Mangelsdorf over 15 years ago

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

<VirtualHost *:80>
  ServerName example.com:80
  DocumentRoot /var/www/vhost/example.com

  PassengerAppRoot /path/to/redmine

  RailsBaseURI /redmine
  Alias /redmine /path/to/redmine/public
</VirtualHost>
    (1-5/5)