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

RE: Help setting up Apache and SVN

From: Mike Craig <Mike.Craig_at_freeclear.com>
Date: 2006-03-09 21:52:07 CET

I guess I'll have to buy myself lunch. Thanks anyway.

 

In case anyone else runs across this problem, here is the fix.

 

Make sure SVNPath is pointing to your repository location, not your
local working copy; see below in bold.

 

Subversion

Repository installed at e:\svn_repository

Files checked out locally to e:\src

 

# Subversion

<Location /svn>

  DAV svn

  # any /svn/foo URL will map to a repository C:/svn/foo

  # I've only got it working using SVNPath!!

  SVNPath e:/svn_repository

# SVNParentPath e:/svn_repository

  AuthType Basic

  AuthName "Subversion repository"

  AuthUserFile e:/svn_repository/.htaccess

 

  # For any operations other than these, require an authenticated user.

  <LimitExcept GET PROPFIND OPTIONS REPORT>

    Require valid-user

  </LimitExcept>

 

</Location>

 

Mike

 

________________________________

From: Mike Craig [mailto:Mike.Craig@freeclear.com]
Sent: Thursday, March 09, 2006 12:11 PM
To: users@subversion.tigris.org
Subject: Help setting up Apache and SVN

 

Does anyone have experience with Apache and Subversion on Windows?

 

I have subversion installed and have imported my repository. I am able
to checkout files as well to a local drive.

However, I am unable to get access to my repository using Apache. I
believe the basic auth is working as explained in
http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.serverconfig.ht
tpd since I am able to browse http://localhost/svn enter my credentials
and then get a 403 Forbidden error.

 

Here is my configuration:

 

Apache2 service

Running as local user 'Apache2' which is member of local Administrators
group

I can browse http://localhost <http://localhost/> and get the main
Apache web page

 

Httpd.conf

# Subversion

<Location /svn>

  DAV svn

  # any /svn/foo URL will map to a repository C:/svn/foo

  # I've only got it working using SVNPath!!

# SVNPath e:/src

  SVNParentPath e:/svn_repository

  AuthType Basic

  AuthName "Subversion repository"

  AuthUserFile e:/svn_repository/.htaccess

 

  # For any operations other than these, require an authenticated user.

  <LimitExcept GET PROPFIND OPTIONS REPORT>

    Require valid-user

  </LimitExcept>

 

</Location>

 

Subversion

Repository installed at e:\svn_repository

Files checked out locally to e:\src

 

Apache error.log entries

[Thu Mar 09 12:00:02 2006] [error] [client 127.0.0.1] Could not fetch
resource information. [500, #0]

[Thu Mar 09 12:00:02 2006] [error] [client 127.0.0.1] Could not open the
requested SVN filesystem [500, #720003]

[Thu Mar 09 12:00:02 2006] [error] [client 127.0.0.1] Could not open the
requested SVN filesystem [500, #720003]

[Thu Mar 09 12:00:07 2006] [error] [client 127.0.0.1] Could not fetch
resource information. [403, #0]

[Thu Mar 09 12:00:07 2006] [error] [client 127.0.0.1] The URI does not
contain the name of a repository. [403, #190001]

 

 

Any help is appreciated, and if you work in downtown Seattle, I might
just buy you lunch!

 

Thanks,

 

Mike

 
Received on Thu Mar 9 21:54:21 2006

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.