Re: [viewvc-users] viewvc-1.0.12 installation, svn not found error. however, it is there

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <4DA35200.9000303__11142.357873223$1302549010$gmane$org@collab.net>
On 04/09/2011 11:53 AM, EE Jan wrote:
> I make the following change in viewvc.conf
> 
> svn_roots = svn: /u/myname/myrepos
> default_root = svn
> svn_path = /usr/bin/
> 
> and I also change my apache httpd conf  at /etc/httpd/conf/httpd.conf
> 
> ScriptAlias /viewvc /usr/local/viewvc-1.0.12/bin/cgi/viewvc.cgi
> 
> <Directory /usr/local/viewvc-1.0.12>
>      Order allow,deny
>      Allow from all
> </Directory>
> 
> However, When I point my browser to http://mymachine.domain/viewvc
> 
> I got
> "an Exception Has occurred",
> svn not found! The wrong path for this repository was configured, or the
> server on which the Subversion tree lives maybe down. Please try again in a
> few minutes.
> 
> 
> The svn is there. However, I think it cannot access due to username/passwd
>  (in my case, it will be kiki/kikifoo)

If the only changes you've made to viewvc.conf are what you state above,
then I don't think lack of username/password is the problem.  You have to do
additional stuff to configure ViewVC to hide repositories from
unauthenticated or particular users, and those things can't even be done
with ViewVC 1.0.x.

Still, I'll try to answer your other questions.

> my question is how does viewvc know username and passwd?

ViewVC never knows the password.  All it can know is the authenticated
username that Apache tells it.  If/when Apache presents an authentication
challenge to a user, and the user provides the correct username and
password, then Apache tells ViewVC that username.  If ViewVC doesn't see
that username, it knows that the user is unauthenticated (anonymous).  Of
course, this only applies to ViewVC 1.1.x, not 1.0.x such as you've installed.

> Do I need to setup access control in my httpd.conf  (e.g. in the
> installation doc)
>       <Location "<url to viewvc.cgi>/<modname_you_wish_to_access_ctl>">
>         AllowOverride None
>         AuthUserFile /path/to/passwd/file
>         AuthName "Client Access"
>         AuthType Basic
>         require valid-user
>       </Location>

No, you should not need to do any of this unless you start working with
ViewVC 1.1.x and its "authorizers".  (And even then, you'd take a slightly
different approach than you speak of here.)


-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

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

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk2jUgAACgkQokEGqRcG/W48ogCfSGQS/WSjA3trY/Pqcxv51EDb
nLQAn0PmgSGz43/u04lKkHJ8LCxIFg+a
=a+E+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.