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

Re: Access to subversion via Pound/SSL+Apache/DAV (add'l info)

From: Jason Vasquez <jason_at_obiwan.homelinux.org>
Date: 2003-08-26 20:11:03 CEST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26 Aug 2003, Ben Collins-Sussman wrote:
> > ServerAlias, etc.) -- unfortunately, that doesn't really apply here, since
> > the URI scheme (not just the hostname) is different.
>
> Can you be more specific? Give more context? Point to discussion threads?

In this particular scenario, the web server that the client sees is
accessible via https. In fact, this is a reverse/transparent/etc proxy,
that is funneling request back to an actual Apache server that is NOT
running ssl. The COPY command from the client is supplying a Destination
header of https://.../ (which the proxy does not modify). Apache/DAV/SVN
is expecting to see a Destination in the form of http://.../. It appears
to be bombing since the schemes differ (although the rest of the URL path
will be the same)

I see several possible solutions here:

  1. Do something in the svn client to have a special case to specify a
     Destination "root" for particular hosts

  2. Have the proxy modify the Destination header before passing it back
     to the backend server.

  3. Make mod_svn/dav/whatever not care if the scheme is different
     (although, this sounds like it breaks spec, and is not very portable
     to the ServerAlias/ServerName problem)

Hmm - now that I think about it, option 3 might in fact work well, if
there are some additional Apache config directives to add additional
allowable Destination URI's for a SVN root.

I believe that this thread (that you started :)) refers to the same
situation, only in that case it had to do with Apache ServerNames:
http://subversion.tigris.org/servlets/BrowseList?list=dev&by=thread&from=44701

I haven't seen anything yet related to a difference in the request URI
scheme.

> I don't understand how this scenario happened: how is it possible for
> your svn client to generate an http:// COPY request with a destination
> header to an https:// url?
(hopefully the above discussion explains this)

- --
- -------------------------------------------------------------------
| | |
| Jason Vasquez | When their numbers dwindled from |
| jason@obiwan.homelinux.org | 50 to 8, the other dwarves began |
| http://obiwan.homelinux.org | to suspect Hungry. |
| | |
|------------------------------------------------------------------
| Public Key: http://obiwan.homelinux.org/~jason/pubkey.txt |
- -------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/S6K6Y6zA1HI6auYRAi+0AJsFFiceGajcHK9ZqFZTwNL576ugjgCgmbbO
XbRgxuz1qrOiFhEj+BJwsgA=
=c2Jw
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 26 20:12:00 2003

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.