Project

General

Profile

Problem about svn and redmine (in a subdirectory)

Added by Oktay Arslan over 13 years ago

Greetings my friends;

I am trying to set up an apache server which runs svn and redmine at the same time. But I have a little problem about configuration of the apache. What I want is to connect redmine and svn from the following addresses:

http://www.myserver.com/redmine
http://www.myserver.com/svn

I am not familiar with apache configuration very much, so I just used several solutions found on the internet (proxy pass and rewrite rules). I've got redmine and svn worked separately, but they don't work together. I've attached the related configuration file for apache.

If I use the following RewriteRules (# 2' s) and do not use ProxyPass (# 1's) directives in the attached conf files,

RewriteEngine On
RewriteCond /{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://redmine_cluster%{REQUEST_URI} [P,QSA,L]

Redmine works great (http://www.myserver.com/redmine), but I couldn't check out any svn repos from the following addresses

http://www.myserver.com/svn/repo1
http://www.myserver.com/svn/repo2
...
...

When I try to connect to http://www.myserver.com/svn/repo1 via Subclipse, it asks username and password for authentication. Then, it says

svn: '/svn/repo1' path not found: 404 Not Found (http://www.myserver.com)

On the other hand, if I use ProxyPass directives (# 1's) and don't use RewriteRule (# 2's),

ProxyPass /redmine http://dcsl.ae.gatech.edu:3000/
ProxyPassReverse /redmine http://dcsl.ae.gatech.edu:3000/
ProxyPreserveHost on

SVN works great from the following addresses.

http://www.myserver.com/svn/repo1
http://www.myserver.com/svn/repo2
...
...

But at this time, redmine doesn't work anymore. Whenever I try to connect the http://www.myserver.com/redmine address, it gives "Forbidden. You don't have permission to access /redmine on this server" the error message.

Basically, the configuration for svn is easy, but whenever I try to run redmine under a subdirectory, there exist some problems. Please let me know which part I need to change in the attached configuration files.

Bests,

endezyar

=========
My system configuration is

Redmine 0.9.6
Ruby 1.8.7
Rubygems 1.3.5
Rails
Ubuntu 10.04
PostgreSQL
Mongrel
Apache 2.2.14