RE: [cgiwrap-users] my rewrite rule...
Brought to you by:
nneul
From: Jeff B. M. <jef...@qw...> - 2002-02-20 23:12:32
|
To be a little more descriptive the problem I have is that the ENV variable "SCRIPT_NAME" ends up being: /cgi-bin/cgiwrap/USERNAME/script.cgi and yet the "SCRIPT_URL" is: /cgi-bin/script.cgi I can solve this in all scripts by looking for the place where they are looking at SCRIPT_NAME and pointing that to the SCRIPT_URL but would rather fix my rewrite rule to be more script friendly. any ideas? thanks, Jeff > -----Original Message----- > From: cgi...@li... > [mailto:cgi...@li...]On Behalf Of Jeff Bert > MTIA > Sent: Wednesday, February 20, 2002 10:24 AM > To: cgi...@li... > Subject: [cgiwrap-users] my rewrite rule... > > > I'm pretty new to this stuff and am having a little trouble with rewrite > rules... the ones that are suggested in the tips and tricks don't seem to > work for my virtual hosts. All the vhosts have domain names like > "myhost.ods.org" (ods.org is an open domain server) and so the > rewrite rule > I've gotten to work is: > > <VirtualHost> > ... > ServerAlias /cgi-bin/ /var/www/cgi-bin/ > RewriteRule ^/cgi-bin/(.*) /cgi-bin/cgiwrap/USERNAME/$1 [PT] > ... > </VirtualHost> > > I've run into a couple of scripts that choke on this rewrite rule but most > like it. Is there a more elegant way to do this? > > thanks, > > Jeff > > > _______________________________________________ > cgiwrap-users mailing list > cgi...@li... > https://lists.sourceforge.net/lists/listinfo/cgiwrap-users > |