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

Re: apache configuration question

From: Joe Orton <joe_at_manyfish.co.uk>
Date: 2001-11-27 00:05:07 CET

On Mon, Nov 26, 2001 at 02:01:52PM -0600, Ben Collins-Sussman wrote:
> I'm trying to understand what causes this COPY request to be rejected
> by Apache. I've seen this error before on newton.collab.net, but now
> I'm seeing it on sp.red-bean.com (another test server). (IIRC, on
> newton, we changed the httpd.conf somehow to fix this?)
>
> I checked out my entire working copy from 'sp.red-bean.com', which is
> a CNAME for sanpietro.red-bean.com. But Apache is sending back a 502
> on a COPY (but not on a PUT). Can you remind me what's going on here?

For a COPY to work, Apache has to know that the hostname in the
Destination header refers to the server it's running on. In this case,
Apache thinks it is running on sanpietro.red-bean.com, and doesn't know
that "sp.red-bean.com" is the same machine. If this is a VirtualHost in
your Apache config, you can make this work by adding:

 ServerAlias sp.red-bean.com

Otherwise you should just use the real name for the server to check out
from. Possibly there are other ways to fix this in 2.0, not sure.

> COPY /testing/$svn/bc/7//misctext/3bits HTTP/1.1
> User-Agent: SVN/0.6.0 neon/0.17.2
> Connection: TE
> TE: trailers
> Depth: infinity
> Destination: http://sp.red-bean.com:8080/testing/$svn/wrk/9ae1671d-d21d-b211-8c09-ee069d8f7c3b/misctext/copies/3bits
> Overwrite: T
> Host: sp.red-bean.com:8080

ps. watch out for those Authorization headers which leak your password!
:)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:49 2006

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