Hiding the 'cvsweb.cgi' from the address

VilleSkyttä scop at FreeBSD.org
Sun Aug 31 12:47:29 PDT 2003


On Sun, 2003-08-31 at 19:38, Rory Vieira wrote:
> Hi,
> 
> I have successfully installed cvsweb.cgi on my Linux server.
> I've put the script in /var/www/cvs, and the config in /etc/apache
> Apache uses the following directives:
> 
> Alias /cvs/ /var/www/cvs/
> <Directory "/var/www/cvs">
>   Options ExecCGI
>   DirectoryIndex cvsweb.cgi
> </Directory>
> 
> I would like the browser to stick with the http://www.mysite.com/cvs/ url
> instead of http://www.mysite.com/cvs/cvsweb.cgi.
> Does anyone have an idea on how to solve this?

How about installing cvsweb.cgi as /var/www/cvs (ie. a executable file
under /var/www/) and using the following Apache config snippet?

  <Location /cvs>
    SetHandler cgi-script
    Options ExecCGI
    [rest of your options here]
  </Location>




More information about the freebsd-cvsweb mailing list