[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: RE: 301/302 redirects

From: Adrian Marsh <Adrian.Marsh_at_ubiquisys.com>
Date: Thu, 14 Aug 2008 16:16:54 +0100

Thanks for taking the time there David..

-----Original Message-----
From: David Chapman [mailto:dcchapman_at_earthlink.net]
Sent: 11 August 2008 18:14
To: Adrian Marsh
Cc: users_at_subversion.tigris.org
Subject: Re: RE: 301/302 redirects

Adrian Marsh wrote:
>
> Thanks Guys,
>
>
>
> Do you have an example of the ProxyPass usage?
>
>
>
> I tried:
>
>
>
> <Location /svn>
> ProxyPass /svn https://secureserver1/svn
>
> </Location>
>
>
>
> But httpd complains :
>
>
>
> *Syntax error on line 38 of /etc/httpd/conf.d/subversion.conf:*
> *Invalid ProxyPass parameter. Parameter must be in the form
'key=value*

I can't explain the error message you are getting, but I have my
ProxyPass in a VirtualHost:

<VirtualHost 0.0.0.0:443>
  ServerName foo.bar.com
  ProxyRequests off
  SSLProxyEngine on
  ProxyPass / https://hostname/
  ProxyPassReverse / https://hostname/
</VirtualHost>

Note the "ProxyPassReverse"; you need this too.

I have the remote host name specified, not a directory name, because
HTTPS requests come in encrypted (including the directory name) and the
proxying host is not the one with the certificate. I have another
repository on port 80, unencrypted, and it has the same syntax in my
httpd.conf file. I'd have to go reread the book to remember why I did
that. :-)

The httpd.conf file on the destination host is in the conventional form
with Location commands for each repository.

I'm having some certificate problems, so I haven't verified that HTTPS
is actually working properly here, but I can check out and commit
remotely, so the proxying itself is working properly. (The certificate
has expired, and if it were being used, I should be asked to confirm
that I do want to use it - and yet I am not asked. Someday I'll have
enough time to figure out why.)

> **
>
>
>
>
------------------------------------------------------------------------
>
> *From:* vishwajeet singh [mailto:dextrous85_at_gmail.com]
> *Sent:* 11 August 2008 13:56
> *To:* Adrian Marsh
> *Cc:* users_at_subversion.tigris.org
> *Subject:* Re: 301/302 redirects
>
>
>
> I have used proxy pass argument and it works in tortoise svn
>
> On Mon, Aug 11, 2008 at 6:23 PM, Adrian Marsh
> <Adrian.Marsh_at_ubiquisys.com <mailto:Adrian.Marsh_at_ubiquisys.com>>
wrote:
>
> Hi All,
>
>
>
> Can someone just confirm for me what I've read up on, that SVN (and
> TortoiseSVN) clients don't support Apache 301 or 302 redirects via
http ?
>
>
>
> Trying to redirect a url: http://server1.com/svn/repos to
> https://secureserver1.com/svn/repos
>
> Have tried a URL re-write and a redirect statement in the apache
> config. Both work in a web browser, but neither works in TortoiseSVN.
>
>
>
> Thanks,
>
>
>
> Adrian
>
>
>
>
> --
> Cheers,
> Vishwajeet
> http://www.singhvishwajeet.com
>

-- 
    David Chapman         dcchapman_at_earthlink.net
    Chapman Consulting -- San Jose, CA
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-14 17:17:18 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.