Okay, almost working as intended:-
(1) Install viewvc via yum
yum --enablerepo=epel install viewvc
(2) Create new ibay called “viewvc”, and enable cgi execution
(3) Copy the viewvc CGI scripts:-
cp /usr/lib/python2.6/site-packages/viewvc/bin/cgi/* /home/e-smith/files/ibays/viewvc/cgi-bin
SVN repos are now visible by visiting <server>/viewvc/cgi-bin/viewvc.cgi ...
What I'd now like to achieve is to create an http Alias from /viewvc to /viewvc/cgi-bin/viewvc.cgi.
I've created a custom VirtualHost template (80ViewVCRedirect) as follows:-
{
$OUT = "";
$OUT .= "\n";
$OUT .= "# Redirect viewvc to CGI script.\n";
$OUT .= "ScriptAlias /viewvc /home/e-smith/files/ibays/viewvc/cgi-bin/viewvc.cgi\n";
}
... but there's already an (auto-generated) Alias for /viewvc in the httpd.conf file, so I get the warning:-
[warn] The ScriptAlias directive will probably never match because it overlaps an earlier Alias
Can anyone tell me how to achieve this top-level alias ?