From owner-freebsd-cvsweb@FreeBSD.ORG Tue Oct 26 19:53:58 2004 Return-Path: Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B38AE16A4CE for ; Tue, 26 Oct 2004 19:53:58 +0000 (GMT) Received: from smtp3.pp.htv.fi (smtp3.pp.htv.fi [213.243.153.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D25E43D58 for ; Tue, 26 Oct 2004 19:53:58 +0000 (GMT) (envelope-from scop@FreeBSD.org) Received: from [62.78.134.138] (cs78134138.pp.htv.fi [62.78.134.138]) by smtp3.pp.htv.fi (Postfix) with ESMTP id 7E4F827AC76 for ; Tue, 26 Oct 2004 22:53:56 +0300 (EEST) From: Ville =?ISO-8859-1?Q?Skytt=E4?= To: freebsd-cvsweb@freebsd.org In-Reply-To: References: Content-Type: text/plain Organization: FreeBSD Message-Id: <1098820435.2462.20.camel@bobcat.mine.nu> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Tue, 26 Oct 2004 22:53:55 +0300 Content-Transfer-Encoding: 7bit Subject: Re: Web server file handling problem X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 19:53:58 -0000 On Tue, 2004-10-26 at 10:53, fullah@csc.com.au wrote: > All links generated by cvsweb have direct file names in it eg, > http://someserver.com/cgi-bin/cvsweb.cgi/myapps/myscript.cfm. > So the web server directs the links to Coldfusion server rather than to > cvsweb.cgi. > > The OS is RedHat linux AS 3.0 and the web server is its httpd (basically > apache 2.0) web server + Coldfusion Mx 6.1 server. > > Is there anyway I can force the web server not to redirect these urls to > Coldfusion Mx server? Map the cfm extension to Coldfusion on a directory/location(match)/virtualhost level in your Apache config, not globally. Or if you need it globally, exclude the /cgi-bin/cvsweb.cgi location from that mapping "manually". Without knowing anything about Coldfusion, it should be doable; see the AddHandler and SetHandler directives in the Apache docs. > My suggestion is to change cvsweb.cgi to pass the filename/path as url > parameters. > So that it would create the links to something like > http://someserver.com/cgi-bin/cvsweb.cgi?path=/myapps/myscript.cfm and > handle them accordingly. But I am not a Perl programmer. Changing that to be the only way to link to files will not happen. It would result in practically all links people now have pointing to CVSwebs around the world suddenly being broken after the change. If someone wants to submit a patch that would allow the above _in addition to_ the current way, it could be considered for inclusion (no promises though).