Re: [viewvc-users] Viewvc Permission problem

trevor obba <[email protected]> Mon, 11 Jun 2012 11:36:29 +0100 (BST)
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <[email protected]>
Thanks for reply; I comment out Subversion's configuration
directives in ViewVc’s http.conf that is SVNParentPath and SVNListParent
however ViewVc webpage (https://www.test.com/viewvc) displayed 500 Internal Server
Error

Apache error log displayed the following error log:
The server is misconfigured: either an SVNPath or
SVNParentPath directive is required to specify the location of this resource's
repository.  [500, #190000]

What else can I try please?


________________________________
 From: C. Michael Pilato <[email protected]>
To: trevor obba <[email protected]> 
Cc: "[email protected]" <[email protected]> 
Sent: Friday, 8 June 2012, 19:41
Subject: Re: [viewvc-users] Viewvc Permission problem
 
On 06/08/2012 01:26 PM, trevor obba wrote:
> Thanks for your reply; yes I have a two location blocks,
> One in “dav_svn.conf”
> 
> <Location /svn>
> DAV svn
> SVNParentPath /abc/svn
>  SVNListParentPath On
> AuthType Basic
>   AuthName "Subversion Repository"
>    AuthBasicProvider ldap
>   AuthzLDAPAuthoritative on
>   AuthLDAPBindDN "o=bindme"
>   AuthLDAPURL  ldap://x.x.x.x:389/ STARTTLS
>   AuthzSVNAccessFile /etc/apache2/acl
>   Require valid-user
> </Location>
>  
> In my http.conf
> ScriptAlias /viewvc "/usr/lib/cgi-bin/viewvc.cgi/"
> Alias /docroot  “/etc/viewvc/templates/docroot”
>  <Location /viewvc>
>   SVNParentPath /abc/svn
>  SVNListParentPath On
>  AuthType Basic
>   AuthName "Subversion Repository"
>    AuthBasicProvider ldap
>   AuthzLDAPAuthoritative on
>   AuthLDAPBindDN "o=bindme"
>   AuthLDAPURL  ldap://x.x.x.x:389/ STARTTLS
>   AuthzSVNAccessFile /etc/apache2/acl
>   Require valid-user
> </Location>
>  
> I tried disabling the DAV svn in “dav_svn.conf” as suggested but this did
> not help.
> 
> All I want to do is to view the root of my repository via
> https://www.test.com/viewvc and https://www.test.com/svn
> It work via https://www.test.com/svn  with my authz access rules but it does
> not work via https://www.test.com/viewvc
> 
> <https://www.test.com/viewvc>
> What am I doing rough? Please help?

The setup you are trying to get is extremely common, so we should be able to
nail this.

Your dav_svn.conf looks fine.  You've got Subversion enabled, some details
that describe where your repositories can be found, and your auth bits.

It's http.conf that's the problem.  ViewVC doesn't need any of Subversion's
configuration directives, so try it without them, like this:

   ScriptAlias /viewvc "/usr/lib/cgi-bin/viewvc.cgi/"
   Alias /docroot  "/etc/viewvc/templates/docroot"
   <Location /viewvc>
      AuthType Basic
      AuthName "Subversion Repository"
      AuthBasicProvider ldap
      AuthzLDAPAuthoritative on
      AuthLDAPBindDN "o=bindme"
      AuthLDAPURL  ldap://x.x.x.x:389/ STARTTLS
      Require valid-user
   </Location>

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2970334

To unsubscribe from this discussion, e-mail: [[email protected]].