From owner-freebsd-cvsweb Sat Sep 7 1:46:49 2002 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 AC79937B400 for ; Sat, 7 Sep 2002 01:46:45 -0700 (PDT) Received: from fed1mtao03.cox.net (fed1mtao03.cox.net [68.6.19.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1375043E6E for ; Sat, 7 Sep 2002 01:46:45 -0700 (PDT) (envelope-from lance@lancerushing.com) Received: from RushingLaptop ([68.8.52.248]) by fed1mtao03.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with SMTP id <20020907084644.BOYG7696.fed1mtao03.cox.net@RushingLaptop> for ; Sat, 7 Sep 2002 04:46:44 -0400 From: "Lance Rushing" To: Subject: FW: Unlimited redirect - CGI wrapper / Contribute Code Date: Sat, 7 Sep 2002 01:46:44 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-cvsweb@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I modified cvsweb.cgi to work with a cgi wrapper (specifically for a Cobalt RaQ4) Should/Where/How/Who I should contact to add this change to the cvsweb project? Here is a diff output for the pertinent stuff. 259a260,262 > $scriptname = defined($ENV{SCRIPT_NAME}) ? $ENV{SCRIPT_NAME} : ''; > $scriptname =~ s|^/*|/|; 260a264,277 > > my $scriptfilename = defined($ENV{SCRIPT_FILENAME}) ? $ENV{SCRIPT_FILENAME} : ''; > if ($scriptfilename =~ m|^/usr/cgiwrap/cgiwrap$|) { > #Example ENV values one cgi wrapper > #$ENV{PATH_TRANSLATED} = /home/sites/site35/web/cgi-bin/cvsweb-2.0.5/cvsweb.cgi > #$ENV{PATH_INFO} = /cgi-bin/cvsweb-2.0.5/cvsweb.cgi/CVSROOT/ > #$ENV{SCRIPT_NAME} = /cgi-bin/cvsweb-2.0.5/cvsweb.cgi/CVSROOT/ > > my $myname = defined($ENV{PATH_TRANSLATED}) ? $ENV{PATH_TRANSLATED} : ''; > $myname =~ s|^.*/||; > $scriptname =~ s|^(.*$myname).*$|$1|; > $pathinfo =~ s|$scriptname||; > } > 265,266c282 < $scriptname = defined($ENV{SCRIPT_NAME}) ? $ENV{SCRIPT_NAME} : ''; < $scriptname =~ s|^/*|/|; -----Original Message----- From: owner-freebsd-cvsweb@FreeBSD.ORG [mailto:owner-freebsd-cvsweb@FreeBSD.ORG]On Behalf Of Simon Dassow Sent: Friday, August 16, 2002 1:14 AM To: freebsd-cvsweb list Subject: Unlimited redirect Hi All, i'm trying to setup cvsweb... but when i access the cvsweb.cgi file, i'm continously redirected to the the script itself. My Setup is Apache 1.3.26 with mod_cgiwrap, i don't know how to fix that, plz help, because i really like your tool :) Best regards, Simon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cvsweb" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cvsweb" in the body of the message From owner-freebsd-cvsweb Sat Sep 7 13: 6:20 2002 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 79D0D37B400 for ; Sat, 7 Sep 2002 13:06:17 -0700 (PDT) Received: from posti.pp.htv.fi (posti.pp.htv.fi [212.90.64.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A23143E3B for ; Sat, 7 Sep 2002 13:06:16 -0700 (PDT) (envelope-from scop@FreeBSD.org) Received: from cs78131139.pp.htv.fi ([62.78.131.139]) by posti.pp.htv.fi (8.11.1/8.11.1) with ESMTP id g87K6e614532; Sat, 7 Sep 2002 23:06:40 +0300 (EETDST) Subject: Re: FW: Unlimited redirect - CGI wrapper / Contribute Code From: Ville =?ISO-8859-1?Q?Skytt=E4?= To: Lance Rushing Cc: freebsd-cvsweb@FreeBSD.org In-Reply-To: References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 07 Sep 2002 23:06:14 +0300 Message-Id: <1031429174.1744.10.camel@bobcat.ods.org> Mime-Version: 1.0 Sender: owner-freebsd-cvsweb@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 2002-09-07 at 11:46, Lance Rushing wrote: > I modified cvsweb.cgi to work with a cgi wrapper (specifically for a Coba= lt > RaQ4) >=20 > Should/Where/How/Who I should contact to add this change to the cvsweb > project? Hello Lance, thanks for the patch, the freebsd-cvsweb mailing list is the correct place. However, I haven't applied your patch yet, basically because I see it somewhat hacky, especially the portion of detecting cgiwrap based on directory/file name. Could you post the full contents of %ENV of cvsweb.cgi running under cgiwrap, so we could see if there's something else there to base the detection on? In case there isn't, I think I will apply this, but add a configuration variable for enabling that stuff, and default it to false. > Here is a diff output for the pertinent stuff. >=20 > 259a260,262 > > $scriptname =3D defined($ENV{SCRIPT_NAME}) ? $ENV{SCRIPT_NAME} : ''; > > $scriptname =3D~ s|^/*|/|; > 260a264,277 > > > > my $scriptfilename =3D defined($ENV{SCRIPT_FILENAME}) ? > $ENV{SCRIPT_FILENAME} : ''; > > if ($scriptfilename =3D~ m|^/usr/cgiwrap/cgiwrap$|) { > > #Example ENV values one cgi wrapper > > #$ENV{PATH_TRANSLATED} =3D > /home/sites/site35/web/cgi-bin/cvsweb-2.0.5/cvsweb.cgi > > #$ENV{PATH_INFO} =3D /cgi-bin/cvsweb-2.0.5/cvsweb.cgi/CVSROOT/ > > #$ENV{SCRIPT_NAME} =3D /cgi-bin/cvsweb-2.0.5/cvsweb.cgi/CVSROOT/ > > > > my $myname =3D defined($ENV{PATH_TRANSLATED}) ? > $ENV{PATH_TRANSLATED} : ''; > > $myname =3D~ s|^.*/||; > > $scriptname =3D~ s|^(.*$myname).*$|$1|; > > $pathinfo =3D~ s|$scriptname||; > > } > > > 265,266c282 > < $scriptname =3D defined($ENV{SCRIPT_NAME}) ? $ENV{SCRIPT_NAME} : ''; > < $scriptname =3D~ s|^/*|/|; Cheers, --=20 \/ille Skytt=E4 scop at FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cvsweb" in the body of the message