Re: [viewvc-users] Apache config error - Invalid command '[templates]'...

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <[email protected]>
Dan Stover wrote:
> I'm trying to configure ViewVC 1.1.5 on Apache 2.2.3 to view multiple
> repositories.  I've followed all the examples and exhausted all searches
> I can think of for help with this error. 
> 
> Syntax error on line 1 of /etc/httpd/conf.d/viewvc.conf:
> Invalid command '[templates]', perhaps misspelled or defined by a module
> not included in the server configuration
>
> Can someone tell me what I'm doing wrong?

There are two configurations of interest here:

- Apache HTTP Server's configuration to tell Apache to invoke ViewVC to
handle requests to a particular set of URLs.  This is what lives in
/etc/httpd/conf.d/ on your system.

- ViewVC's configuration, to tell ViewVC how to do its thang when it's
invoked.  This should *not* be in /etc/httpd/conf.d/ on your system.

The error you are seeing is caused by Apache trying to read ViewVC
configuration directives (which are INI-style with sections and name=value
option lines) as if they were Apache configuration directives (which aren't).

> I added these lines to my httpd.conf file:
> 
> ScriptAlias /viewvc "//etc/opt/CollabNet_Subversion/cgi-bin/viewvc.cgi"
> ScriptAlias /query "//etc/opt/CollabNet_Subversion/cgi-bin/query.cgi"

CollabNet Subversion Server ships with a working ViewVC instance, so I'm not
sure why you felt you needed to configure things for yourself.  If you have
further questions about CollabNet Subversion Server, though, you might want
to take them over to the forums at subversion.open.collab.net[1].

-- C-Mike

[1] http://subversion.open.collab.net/ds/viewForumSummary.do?dsForumId=3

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

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

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

iEYEARECAAYFAku81dUACgkQokEGqRcG/W4p0QCgqgbOOT0c6XvXhbsK166ZX/qw
NwYAoLF+p2XEv8b2awLwWWR0Hr8nRnhN
=8evD
-----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.