Help with svn through a reverse proxy


#1

Dear Support,

I am struggling to setup our first svn repository in a 4.12.4 Community Edition version.
I’ve followed the documentation (Subversion With Write Over HTTP), and the setup working more or less.
Apache configuration created; mod_dav_svn.conf generated, etc.
I can checkout an svn repository using the following url: http://1.1.1.1/svn-repogroup/svn-repo.

So the basic setup works fine.

However we have a bit complicated server setup:
The rhodecode server (IP 1.1.1.1) is mostly accessed through the following url: http://mycompany.com/rhodecode.
This is done by an apache reverse proxy, running on separate server. This proxy forwards every traffic to the rhodecode server if the url contains mycompany.com/rhodecode
Meaning, that accessing the mentioned svn repository should be done through http://mycompany.com/rhodecode/svn-repogroup/svn-repo.
But when I tried to checkout using this url, there was an error:
http://mycompany.com/rhodecode/svn-repogroup/svn-repo is not the same as http://mycompany.com/svn-repogroup/svn-repo (or something similar).

I’ve checked if I can access the repository at http://1.1.1.1:8090/rhodecode/svn-repogroup/svn-repo with a browser, but it was not possible. Instead it was accessible at http://1.1.1.1:8090/svn-repogroup/svn-repo.

I’ve modified the svn configuration part in the rhodecode.ini, and modified the svn.proxy.location_root to svn.proxy.location_root = /rhodecode.
After regenerating the apache config file I checked again, and http://1.1.1.1:8090/rhodecode/svn-repogroup/svn-repo was now working.

But still, using the proper url (http://mycompany.com/rhodecode/svn-repogroup/svn-repo) during checkout gives different kind of errors:

  1. 500 ‘Internal Server Error’
  2. 405 Method not allowed

Tried svn 1.9 as start on the client PC where I wanted to checkout the repository. Downgraded to 1.8 as I’ve found an old thread here where that was suggested. No difference.
Based on the apache error.log I’ve tried various additional things:

  1. modified the document root from /var/www/html to /repos in the apache conf (/repos is the directory where the repositories are stored on the server)
  2. Added read permission to everyone on this entry

But still, I have those 500, 405 errors when trying to checkout.

I think the problem is related to this extra twist in the reverse proxy setup. Probably not everything is forwarded, but I cannot figure out what is missing.

Kind regards,
Tamas


#2

Dear Support,

Any tips on the mentioned issue?

Thanks,
Tamas


#3

Dear Support,

May I have an update on this topic?

Thanks,
Tamas


#4

can u help how u check out the code. am getting below erro.

vn: E175002: Unable to connect to a repository at URL ‘https://rhodecode.ivycomptech.co.in/testgroup/testingsvnone
svn: E175002: Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for ‘https://rhodecode.ivycomptech.co.in/testgroup/testingsvnone