You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Patrick du Boucher <pa...@gmail.com> on 2007/11/06 13:24:20 UTC

Re: Problems viewing the svn repo in an internet browser (Patrick)

Hi thanks for the tip, however it has not solved the problem.

I think I'm already able to make the connection as I get prompted for the
password on this URL (http://x.x.x.39/cruisecontrol), but when I enter in
details, the prompt just re-iterates itself. (problem delivering  the
passwords I presume, as the user/passwd are correct)

Anyone have any ideas?

Patrick


On 05/11/2007, Ryan Schmidt <su...@ryandesign.com> wrote:
>
> On Nov 5, 2007, at 07:53, Patrick du Boucher wrote:
>
> > I am unable to see the contents of the svn in an internet browser.
> > (with the httpd service)
> > I have read the threads in this list regarding my problem, but they
> > have not solved it. I hope someone can enlighten me.
> >
> > I am a relative newbie with svn admin.
> > we are running apache 2.0.52 and svn 1.4.3 . Redhat  E4
> >
> > Unfortunately, upgrading the svn and apache seems to be a no-go
> > option! I do not have control of the admin!
> >
> > As far as I can see from the various docs available, all my
> > configuration files for svn are properly configured and permissions
> > are correct. But I am unable to get an svn view from an Internet
> > browser.
> >
> > Please find below all relevant files (that I can think of)
> >
> > Best Regards,
> > Patrick
> >
> > points to note:
> > All ownership permissions to files have been set to apache.apache
> > svn root is at /var/svn/repositories/
> > service httpd launches correctly
> > result is that when try http://*.*.*.39/svn I get asked for a
> > password. But the connection is never authorised. (if I remove the
> > require user from /etc/httpd/conf.d/subversion.conf I get a
> > "Forbidden" Web Page.
> >
> >
> > I would *really* appreciate a solution to this as I am getting very
> > frustrated, especially since I don't completely understand exactly
> > where the problem is arrising from!
> >
> >
> >
> > 1) /etc/httpd/conf.d/subversion.conf
> > ----------------------
> > .
> > .
> > .
> >
> > <Location /svn>
> >    DAV svn
> >    SVNPath /var/svn/repositories
>
> You either need to point "SVNPath" at a single repository, or if you
> want to have several repositories, then change "SVNPath" to
> "SVNParentPath". If the latter, you may also want "SVNListParentPath
> on".
>
>
> >    AuthType Basic
> >    AuthName "cruisecontrol"
> >    AuthUserFile /var/svn/repositories/.svn-auth-file
> >    AuthzSVNAccessFile /var/svn/repositories/.svn-policy-file
> >    Require valid-user
> > </Location>
> > ----------------------
> >
> >
> > 2) /var/svn/repositories/.svn-auth-file
> > ----------------------
> > test:G5izqmADODWi.
> > ----------------------
> >
> >
> > 3) /var/svn/repositories/.svn-policy-file
> > ----------------------
> > [/]
> > * = rw
> >
> > [repositories:/cruisecontrol]
> > test = rw
> >
> > [cruisecontrol:/]
> > test = rw
> > ----------------------
> >
> >
> > 4) /var/svn/repositories/cruisecontrol/conf/svnserve.conf
> > ----------------------
> > [general]
> > ### These options control access to the repository for unauthenticated
> > ### and authenticated users.  Valid values are "write", "read",
> > ### and "none".  The sample settings below are the defaults.
> > anon-access = read
> > auth-access = write
> > ### The password-db option controls the location of the password
> > ### database file.  Unless you specify a path starting with a /,
> > ### the file's location is relative to the conf directory.
> > ### Uncomment the line below to use the default password file.
> > #password-db = passwd
> > ### The authz-db option controls the location of the authorization
> > ### rules for path-based access control.  Unless you specify a path
> > ### starting with a /, the file's location is relative to the conf
> > ### directory.  If you don't specify an authz-db, no path-based access
> > ### control is done.
> > ### Uncomment the line below to use the default authorization file.
> > #authz-db = /etc/httpd/passwd/svnauthz.conf
> > ### This option specifies the authentication realm of the repository.
> > ### If two repositories have the same authentication realm, they
> > should
> > ### have the same password database, and vice versa.  The default
> > realm
> > ### is repository's uuid.
> > realm = My First Repository
> > ----------------------
>

RE: Problems viewing the svn repo in an internet browser

Posted by "Trauger, Theresa J" <th...@lmco.com>.
I just did this very thing today and had to use:
<Location /svn/>

Then I could see my list of repositories at:
http://ServerNameOrIP/svn/

I had to put the slash on the end.


-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2007b@ryandesign.com] 
Sent: Tuesday, November 06, 2007 2:14 PM
To: Patrick du Boucher
Cc: users@subversion.tigris.org
Subject: Re: Problems viewing the svn repo in an internet browser
(Patrick)


On Nov 6, 2007, at 07:24, Patrick du Boucher wrote:

> On 05/11/2007, Ryan Schmidt wrote:
>
>> On Nov 5, 2007, at 07:53, Patrick du Boucher wrote:
>>
>> > <Location /svn>
>> >    DAV svn
>> >    SVNPath /var/svn/repositories
>>
>> You either need to point "SVNPath" at a single repository, or if you
>> want to have several repositories, then change "SVNPath" to
>> "SVNParentPath". If the latter, you may also want "SVNListParentPath
>> on".
>>
>>
>> >    AuthType Basic
>> >    AuthName "cruisecontrol"
>> >    AuthUserFile /var/svn/repositories/.svn-auth-file
>> >    AuthzSVNAccessFile /var/svn/repositories/.svn-policy-file
>> >    Require valid-user
>> > </Location>
>
> Hi thanks for the tip, however it has not solved the problem.

It is, however, definitely a necessary step.

You showed is the path "/var/svn/repositories/cruisecontrol/conf/ 
svnserve.conf". This shows me that inside the directory /var/svn/ 
repositories, you have a repository called cruisecontrol. You must  
either use:

SVNPath /var/svn/repositories/cruisecontrol

or if you have several repositories under /var/svn/repositories that  
you would like to serve with the same authorization files, then you  
must use:

SVNParentPath /var/svn/repositories


> I think I'm already able to make the connection as I get prompted  
> for the password on this URL (http://x.x.x.39/cruisecontrol ), but  
> when I enter in details, the prompt just re-iterates itself.  
> (problem delivering  the passwords I presume, as the user/passwd  
> are correct)

Based on your <Location /svn> directive, that's not a correct URL for  
your repositories. If you're using SVNPath pointing to a single  
repository, then the correct URL would be:

http://ServerNameOrIP/svn

If you're using SVNParentPath pointing to a directory containing  
repositories, then the correct URL would be:

http://ServerNameOrIP/svn/RepositoryName

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problems viewing the svn repo in an internet browser (Patrick)

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Nov 6, 2007, at 07:24, Patrick du Boucher wrote:

> On 05/11/2007, Ryan Schmidt wrote:
>
>> On Nov 5, 2007, at 07:53, Patrick du Boucher wrote:
>>
>> > <Location /svn>
>> >    DAV svn
>> >    SVNPath /var/svn/repositories
>>
>> You either need to point "SVNPath" at a single repository, or if you
>> want to have several repositories, then change "SVNPath" to
>> "SVNParentPath". If the latter, you may also want "SVNListParentPath
>> on".
>>
>>
>> >    AuthType Basic
>> >    AuthName "cruisecontrol"
>> >    AuthUserFile /var/svn/repositories/.svn-auth-file
>> >    AuthzSVNAccessFile /var/svn/repositories/.svn-policy-file
>> >    Require valid-user
>> > </Location>
>
> Hi thanks for the tip, however it has not solved the problem.

It is, however, definitely a necessary step.

You showed is the path "/var/svn/repositories/cruisecontrol/conf/ 
svnserve.conf". This shows me that inside the directory /var/svn/ 
repositories, you have a repository called cruisecontrol. You must  
either use:

SVNPath /var/svn/repositories/cruisecontrol

or if you have several repositories under /var/svn/repositories that  
you would like to serve with the same authorization files, then you  
must use:

SVNParentPath /var/svn/repositories


> I think I'm already able to make the connection as I get prompted  
> for the password on this URL (http://x.x.x.39/cruisecontrol ), but  
> when I enter in details, the prompt just re-iterates itself.  
> (problem delivering  the passwords I presume, as the user/passwd  
> are correct)

Based on your <Location /svn> directive, that's not a correct URL for  
your repositories. If you're using SVNPath pointing to a single  
repository, then the correct URL would be:

http://ServerNameOrIP/svn

If you're using SVNParentPath pointing to a directory containing  
repositories, then the correct URL would be:

http://ServerNameOrIP/svn/RepositoryName

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org