Why is the VisualSVN server rewriting my URL?

I installed the VisualSVN server on the company machine. Its URL (intranet) is http: // myhost: 12321 / svn .

There is Apache on the same machine, which we use as a reverse proxy. On one computer (Apache, Tomcat) there are several other servers that are accessible externally using a reverse proxy.

For example, we have a Redmine stack that runs inside http: // myhost: 32123 / redmine , which is displayed through a reverse proxy (for example, conf / rproxy2.conf):

ProxyPass /redmine http://myhost:32123/redmine ProxyPassReverse /redmine http://myhost:32123/redmine 

This works, Redmine is available at http://my.external.address/redmine .

When I try to do the same for VisualSVN:

 ProxyPass /svn http://myhost:12321/svn ProxyPassReverse /svn http://myhost:12321/svn 

when the user goes to http: //my.external.address/svn , he is redirected to http: // myhost: 12321 / svn , which of course does not work.

Any ideas why this is happening and how to fix it?

Thanks.

+4
source share
1 answer

I had problems with ProxyPass because it will give the client 301 (moves forever), so the browser will cache this response for a long time. Try using a different browser or clear the cache between configuration changes.

0
source

Source: https://habr.com/ru/post/1346703/


All Articles