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

Re: Problem committing to a write-thru proxy

From: Xesc Arbona <beheer_at_topdesk.com>
Date: Wed, 18 Mar 2009 10:05:51 -0700 (PDT)

nlif wrote:
>
> Hi all,
>
> I am trying to set-up a proxy repository (using SVN 1.5). I have followed
> the instructions and set-up a slave repository, which is served by Apache
> 2.2 via DAV. The Locationsection in the http.conf is the same as the
> master, and I added the SVNMasterURI like so:
> http://URL:PORT/svn/repositories. I then created a new local working copy
> by checkeding-out from the proxy repository. Now, I am trying committing a
> change, and this is what I keep getting:
>
>
> Command: Commit
> Error: Commit failed (details follow):
> Error: Server sent unexpected return value (405 Method Not Allowed) in
> response to
> Error: MKACTIVITY request for
> '/svn/la/!svn/act/53faaa48-7461-914e-bff7-d5017525ca18'
> Finished!:
>
>
> Can anyone shed some light?
>

I had exactly the same problem. Everything worked fine except committing
data to the master. Problem has nothing to do with Subversion, but with
Apache2. You need to enable proxy and proxy_http modules. Perhaps also the
rewrite module.

The following code is equivalent to "SVNMasterURI http://master/svn", and
should also work:

  RewriteEngine on
  RewriteCond %{REQUEST_METHOD} !^GET$
  RewriteCond %{REQUEST_METHOD} !^PROPFIND$
  RewriteCond %{REQUEST_METHOD} !^OPTIONS$
  RewriteCond %{REQUEST_METHOD} !^REPORT$
  RewriteRule ^(.*)$ http://master%{REQUEST_URI} [P]
  ProxyPassReverse http://master/svn

I tried it and I got several errors on Apache2 logs that made me install the
modules. Now it works like a charm. ;)

Regards,

--
Xesc
-- 
View this message in context: http://www.nabble.com/Problem-committing-to-a-write-thru-proxy-tp20524286p22583729.html
Sent from the Subversion Users mailing list archive at Nabble.com.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1349505
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-18 18:07:31 CET

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.