Project

General

Profile

/redmine as alias in apache configuration and how to configure redmine to connect to my svn repos?

Added by Ali Nebi over 14 years ago

Hi,

i am newbie with redmine and i just installed redmine-0.8.5 on my centos 5 server.

I have two questions.

1. My default domain in apache is host.mydomain.tld. I want to set redmine as alias to this host, so redmine to be accessible this way:

https://host.mydomain.tld/redmine

i have done this configuration:
Alias /redmine /var/www/redmine/public

<Directory /var/www/redmine/public>
AddHandler fastcgi-script .fcgi
Options FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>

when i access the link i see in error logs this:

[Sun Oct 04 21:40:16 2009] [error] [client 77.xx.xx.xx] Directory index forbidden by Options directive: /var/www/redmine/public/

2. What do i need and how to configure redmine to access and read data from my svn repositories?
I already have installed and working svn repo here /var/www/svn

Thanks in advanced!


Replies (3)

RE: /redmine as alias in apache configuration and how to configure redmine to connect to my svn repos? - Added by John Fisher over 14 years ago

Ali I am no great expert on Redmine or Rails, but FWIW I was only able to get Redmine to work on a Ubuntu/Apache2.2 with Passenger and with the DocumentRoot set to /var/www/redmine/public. I'd expect your CentOS experience to be much the same. If you do get it working using an Alias directive, I would like to know how...

my recipe is listed here...
http://www.redmine.org/boards/2/topics/8904

John

RE: /redmine as alias in apache configuration and how to configure redmine to connect to my svn repos? - Added by Ali Nebi over 14 years ago

Hi, i found out how to configure apache to use /redmine, not virtual host.

If you run redmine as a separate process with webrick, you can use it this way:

in apache:

<Location /redmine>
ProxyPass http://localhost:3000
ProxyPassReverse http://localhost:3000/
</Location>

in redmine/config/environment.rb put this to the end:

ActionController::AbstractRequest.relative_url_root = "/redmine"

I preffer to use mod_proxy instead of mod_cgi, because performance. It is much faster to use mod_proxy.

:)

    (1-3/3)