httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ricardo13 <ricardoogra...@gmail.com>
Subject RE: Module that forward requests
Date Mon, 13 Jul 2009 14:02:11 GMT

Hi,


Houser, Rick wrote:
> 
>> I'm newbie in APR ... the same in mod_rewrite with flag [P].
> 
> If the mod_rewrite does what you need, you should use that rather than
> re-writing an alternate version on your own.
> 
> Yep, but mod_rewrite doesn't enable I modify request_rec structure, then I
> will do my module.
> My module is very simply, it does this:
> 
> char* ip;
> if(request_rec->variable = 1)
>     strcpy(ip, "xxx.xxx.xxx.xxx");
> else
>     strcpy(ip, "yyy.yyy.yyy.yyy");
> 
> forward_to_machine(ip);
> 
> Just it. My doubt is forward request as like mod_proxy, or flag [P] in
> mod_rewrite.
> I'm reading mod_proxy, but doesn't understood.
> 
> Thank you
> Ricardo 
> 
> 
> 
> 
> Thanks,
> 
> Rick Houser
> Auto-Owners Insurance
> Systems Support
> (517)703-2580
> 
> -----Original Message-----
> From: ricardo13 [mailto:ricardoogrande@gmail.com] 
> Sent: Monday, July 13, 2009 9:34 AM
> To: modules-dev@httpd.apache.org
> Subject: Module that forward requests
> 
> 
> hi,
> 
> I'm newbie in APR and need develop a module that forward request to
> cluster.
> The same in mod_rewrite with flag [P].
> 
> That module, I processing the object request_rec->uri and set what
> machine in cluster forward the request.
> 
> Thank you.
> Ricardo
> --
> View this message in context:
> http://www.nabble.com/Module-that-forward-requests-tp24461810p24461810.h
> tml
> Sent from the Apache HTTP Server - Module Writers mailing list archive
> at Nabble.com.
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Module-that-forward-requests-tp24461810p24462303.html
Sent from the Apache HTTP Server - Module Writers mailing list archive at Nabble.com.


Mime
View raw message