httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bond" <jamesbond_...@hotmail.com>
Subject [users@httpd] rewrite problems
Date Wed, 23 Jul 2003 18:02:23 GMT
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


Mime
View raw message