| View previous topic :: View next topic |
| Author |
Message |
daneel
Joined: 31 Mar 2005 Posts: 2 Location: Montreal
|
Posted: Thu Mar 31, 2005 11:39 pm Post subject: Forbidden access or bad repository ? |
|
|
Hi,
I'm new to Subversion and I'm trying to set up the mod_da_svn module on my Apache 2.0.52 server, just to test it on localhost.
So I followed the instructions in the SVN book, I added the LoadModule directive, created an auth_file and added the following Location thing to httpd.conf
| Code: |
<Location /svn>
DAV svn
SVNParentPath "W:/svn"
AuthType Basic
AuthName "Subversion repository"
AuthUserFile "w:/svn/auth.file
Require valid-user
</Location>
|
Knowing that my SVN repository is in w:\svn (on Windows XP SP2).
When I try to access "http://localhost/svn" I'm asked for authentication and when I authenticate I get the following message :
| Code: |
Forbidden
You don't have permission to access /svn on this server.
Apache/2.0.52 (Win32) SVN/1.1.3 PHP/4.3.9 DAV/2 Server at localhost Port 80
|
Which seems to imply that my apache/svn setup is working but not the repository access thing. And in my apache error log, this is what I get :
| Code: |
[Thu Mar 31 22:33:06 2005] [error] [client 127.0.0.1] Could not fetch resource information. [403, #0]
[Thu Mar 31 22:33:06 2005] [error] [client 127.0.0.1] The URI does not contain the name of a repository. [403, #190001]
|
So I tried to get deeper into my repository and accessed http://localhost/svn/myproject and then I got this XML message :
| Code: |
<D:error>
<C:error/>
<m:human-readable errcode="720003">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>
|
Any idea of what's wrong ? Because I'm not an expert with Apache configuration and I'm kind of lost...
Thank you very much in advance _________________ daneel |
|
| Back to top |
|
Manuzhai

Joined: 16 Dec 2004 Posts: 166 Location: Amsterdam
|
Posted: Fri Apr 01, 2005 2:01 am Post subject: |
|
|
Note that you told Apache W:/svn is your SVNParentPath: any repositories should be subdirectories of that directory. So you should have:
W:/svn/repos/db
W:/svn/repos/hooks
W:/svn/repos/conf
etc. You sound like you have W:/svn/db instead... |
|
| Back to top |
|
daneel
Joined: 31 Mar 2005 Posts: 2 Location: Montreal
|
Posted: Fri Apr 01, 2005 10:17 am Post subject: |
|
|
Thank you very much. You hit the bull's eye ! I misunderstood the SVNParentPath directive. I just replaced it by SVNPath and now everything works just fine.
Thanks a lot... _________________ daneel |
|
| Back to top |
|
Manuzhai

Joined: 16 Dec 2004 Posts: 166 Location: Amsterdam
|
Posted: Sun Apr 03, 2005 6:25 pm Post subject: |
|
|
Glad to be of service.  |
|
| Back to top |
|
Sriram
Joined: 18 Mar 2008 Posts: 2
|
Posted: Tue Mar 18, 2008 9:12 am Post subject: |
|
|
I have repository structure like D:\SVN\Project1
In the httpd.conf I have given as
<Location /SVN>
DAV svn
SVNPath "D:/SVN"
</Location>
Could you please tell me whether its correct or any thing needs to be changed? |
|
| Back to top |
|
|
View previous topic :: View next topic |