Re: [viewvc-dev] CVS with ViewVC config error
"C. Michael Pilato" <[email protected]> Wed, 14 Jan 2015 15:22:34 -0500
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.devel |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
Correct! /etc/httpd/conf.d/viewvc.conf is still technically httpd configuration -- specifically, that part of the httpd configuration which is responsible for making ViewVC available at all. /etc/viewvc/viewvc.conf governs how ViewVC behaves once it is running. Glad you found the solution! -- Mike On 01/14/2015 03:18 PM, Nitin Thakur wrote: > Okay got the solution. > > The repo config goes to /etc/viewvc/viewvc.conf and not in /etc/httpd/conf.d/viewvc.conf > > Since both the files have same name its easy to make the mistake. > > Thanks Michael for your help > > > Nitin > >> On Jan 14, 2015, at 3:04 PM, C. Michael Pilato <[email protected]> wrote: >> >> On 01/14/2015 02:34 PM, Nitin Thakur wrote: >>> Hi >>> >>> I installed httpd and viewvc via yum on RHEL. i updated the viewvc config >>> >>> ### viewvc sample configuration >>> #cvs_roots = cvs :/var/cvs/cvsroot >>> root_parents = /var/cvs/cvsroot : cvs >>> default_root = cvs >>> ScriptAlias /viewvc /var/www/cgi-bin/viewvc.cgi >>> ScriptAlias /query /var/www/cgi-bin/query.cgi >>> >>> >>> When I try to start the apache i get following error: - >>> >>> # service httpd start >>> Starting httpd: Syntax error on line 3 of /etc/httpd/conf.d/viewvc.conf: >>> Invalid command 'root_parents', perhaps misspelled or defined by a module not included in the server configuration >>> [FAILED] >>> >>> >>> Any help will be appreciated. >> Nitin, >> >> The error you see is due to having viewvc.conf configuration options in >> the Apache httpd.conf. These are two separate configuration systems for >> two separate bits of software, and live in two different distinct >> configuration files. >> >> These lines: >> >> ### viewvc sample configuration >> #cvs_roots = cvs :/var/cvs/cvsroot >> root_parents = /var/cvs/cvsroot : cvs >> default_root = cvs >> >> ...belong in viewvc.conf. >> >> The others (the ScriptAlias lines) are for Apache httpd, and belong in >> httpd.conf (where you already have them). >> >> -- >> C. Michael Pilato <[email protected]> >> CollabNet <> www.collab.net <> Enterprise Cloud Development >> -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Enterprise Cloud Development ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4251&dsMessageId=3094276 To unsubscribe from this discussion, e-mail: [[email protected]].