httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bond" <jamesbond_...@hotmail.com>
Subject Re: [users@httpd] rewrite problems
Date Thu, 24 Jul 2003 12:56:56 GMT
Hi,
I debugged the perl script and found out the following:

Apache rewrite rule is not passing any environment variavle to the perl 
script. Is there any way I can pass the complete URL to the perl script?

james


>From: "James Bond" <jamesbond_422@hotmail.com>
>Reply-To: users@httpd.apache.org
>To: users@httpd.apache.org
>Subject: [users@httpd] rewrite problems
>Date: Wed, 23 Jul 2003 18:02:23 +0000
>
>Hi,
>I am running apache 2.0.47 with rewrite+proxy module.
>I am  having soem problem with rewritemap.
>
>Following are my rules:
>
>RewriteMap    lb      prg:/export/apps/apache/current/conf/program.pl
>RewriteRule   /  ${lb:$1}           [P,L]
>Proxypassreverse  /  ${lb:$1}
>
>and following is my program.pl script
>
>----------------------------------------------------
>#!/usr/bin/perl
>#
>$| = 1;
>
># get query string
>$QUERY = $ENV{'QUERY_STRING'};
>
># Build a URL
>$URL="https://www.foo.com/foo.logon?name=$QUERY";
>
>if ( $? == 0 ) {
>    while ( <STDIN> ) {
>    print "$URL$_";
>    }
>}
>
>-------------------------------------------------------
>Now the problem is this script only sends blank querystring. So the URL is:
>https://www.foo.com/foo.logon?name=
>
>Can i get the query string environment in this program?
>Please advise.
>
>Thanks
>james
>
>_________________________________________________________________
>On the move? Get Hotmail on your mobile phone 
>http://www.msn.co.uk/msnmobile
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>

_________________________________________________________________
Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message