Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2002 01:46:44 -0700
From:      "Lance Rushing" <lance@lancerushing.com>
To:        <freebsd-cvsweb@FreeBSD.ORG>
Subject:   FW: Unlimited redirect  - CGI wrapper / Contribute Code
Message-ID:  <NEBBLHBOGAFGANFIFDEAMEOJCKAA.lance@lancerushing.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NEBBLHBOGAFGANFIFDEAMEOJCKAA.lance>