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

RE: Plone/Zope & Apache SVN Server

From: Robert Hunter <robert.hunter_at_gen-i.co.nz>
Date: 2005-02-27 22:32:48 CET

David C.M. Weber wrote:
> Probably a strange question, but here goes. I have a
> plone/zope site. I have apache performing a mod_rewrite
> to forward any requests to the server, to the localhost
> port on the box (basically acting as a proxy).
>
> I added a rule so that http;//mysite.com/svn/ actually
> points to the subversion repository. I have a
> rewrite rule of:

> RewriteRule ^/svn/ - [L]

> To tell it to not rewrite this address. I then have
> a location block of:
>
> <Location /svn>
> DAV svn
> SVNPath /var/www/asdf/repository
> AuthType Basic
> AuthName "Password"
> AuthUserFile /var/www/asdf/.htpasswd
> Require valid-user
> </Location>
>
> Browsing via a web browser, this works fine. However,
> when I check out the repository, I get one authentication
> from the svn directory, then it asks me for additional
> passwords for the plone/zope site.

If you're being prompted for Plone/Zope authentication,
then it sounds like your request is still hitting the
Zope server somewhere along the way. Which it shouldn't,
because your RewriteRule should prevent Apache from
passing the request to your Zope server.

Remember that the order of Apache rewrite directives
is important, so make sure that your /svn rule takes
precedence.

Perhaps you could post all your rules? I guess the
issue is more an Apache issue (mod_rewrite) than a
Subversion or Plone/Zope issue, so you might have
more luck on an Apache list.

Can I suggest adding some content at /svn in your Plone
site, so that if a request does make it through to
Zope, you'll know?

An alternative is to use two separate virual hosts:
use appropriate RewriteRules in "www.mysite.com" to
proxy for the Zope server, but use SVNPath etc in
"svn.mysite.com".

-- 
Robert Hunter
*****************************************************************************
This communication, including any attachments, is confidential.
If you are not the intended recipient, you should not read it
- please contact me immediately, destroy it, and do not copy
or use any part of this communication or disclose anything about it,
Thank you.
Please note that this communication does not designate an information system
for the purposes of the Electronic Transactions Act 2002
******************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Feb 27 22:36:24 2005

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.