Module that forward requests

2009-07-13 Thread ricardo13
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:

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 9:34 AM, ricardo13ricardoogra...@gmail.com wrote: 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

RE: Module that forward requests

2009-07-13 Thread Houser, Rick
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. Thanks, Rick Houser Auto-Owners Insurance Systems Support (517)703-2580 -Original Message- From: ricardo13

RE: Module that forward requests

2009-07-13 Thread ricardo13
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

Re: Module that forward requests

2009-07-13 Thread ricardo13
Eric Covener wrote: On Mon, Jul 13, 2009 at 9:53 AM, Eric Covenercove...@gmail.com wrote: On Mon, Jul 13, 2009 at 9:48 AM, ricardo13ricardoogra...@gmail.com wrote: Only opinion. Is this difficult ?? or easy ?? Because I haven't idea !! It's difficult. I'd suggest finding a way to use

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 10:06 AM, ricardo13ricardoogra...@gmail.com wrote: It's difficult. I'd suggest finding a way to use existing modules. Use or modify, that is. Can my module to use mod_proxy for forward requests ? How do I do it ? I'm not convinced you need a module. mod_rewrite

Re: Module that forward requests

2009-07-13 Thread ricardo13
Eric Covener wrote: On Mon, Jul 13, 2009 at 10:06 AM, ricardo13ricardoogra...@gmail.com wrote: It's difficult. I'd suggest finding a way to use existing modules. Use or modify, that is. Can my module to use mod_proxy for forward requests ? How do I do it ? I'm not convinced you need

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 10:33 AM, ricardo13ricardoogra...@gmail.com wrote: Eric Covener wrote: On Mon, Jul 13, 2009 at 10:06 AM, ricardo13ricardoogra...@gmail.com wrote: It's difficult. I'd suggest finding a way to use existing modules. Use or modify, that is. Can my module to use

Re: Module that forward requests

2009-07-13 Thread ricardo13
Eric Covener wrote: On Mon, Jul 13, 2009 at 10:33 AM, ricardo13ricardoogra...@gmail.com wrote: Eric Covener wrote: On Mon, Jul 13, 2009 at 10:06 AM, ricardo13ricardoogra...@gmail.com wrote: It's difficult. I'd suggest finding a way to use existing modules. Use or modify, that is.

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 10:46 AM, ricardo13ricardoogra...@gmail.com wrote: Not arbitrarily.  You can store that value in a note (r-notes) and set/query via rewrite if you're not looking to do much development. You can store that value in a note (r-notes) How do I do it ?? Remember, using

Re: Module that forward requests

2009-07-13 Thread ricardo13
Eric Covener wrote: On Mon, Jul 13, 2009 at 10:46 AM, ricardo13ricardoogra...@gmail.com wrote: Not arbitrarily.  You can store that value in a note (r-notes) and set/query via rewrite if you're not looking to do much development. You can store that value in a note (r-notes) How do I

Re: Module that forward requests

2009-07-13 Thread ricardo13
Hi, I'm studying proxy in mod_rewrite and I saw the following line: request_rec *r; r-proxyreq == PROXYREQ_PROXY; But in httpd.h, the request_rec object hasn't field proxyreq. What's this ?? Thank you Ricardo ricardo13 wrote: hi, I'm newbie in APR and need develop a module that

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 1:30 PM, ricardo13ricardoogra...@gmail.com wrote: r-proxyreq == PROXYREQ_PROXY; But in httpd.h, the request_rec object hasn't field proxyreq. What's this ?? In my 2.2.x headers it's an int in the request_rec. -- Eric Covener cove...@gmail.com

Excluding SSI content from filtering

2009-07-13 Thread Dennis J.
Hi, I wrote a module that adds a header and a footer to html output and that works pretty well. The problem ist that once i add a !--#include virtual=/ssi/... -- directive the content included also gets that header and footer applied. Is there a way to prevent the header/footer filter from

Re: Excluding SSI content from filtering

2009-07-13 Thread Ronald Park
I believe you should wrap your header/footer inserter inside an if (!r-main ) { ... } block. So only the 'main' request is wrapped but not any subrequests. Ron On Mon, 2009-07-13 at 20:45 +0200, Dennis J. wrote: Hi, I wrote a module that adds a header and a footer to html output and

Re: Excluding SSI content from filtering

2009-07-13 Thread Dennis J.
Works perfectly! Thanks! Regards, Dennis On 07/13/2009 08:51 PM, Ronald Park wrote: I believe you should wrap your header/footer inserter inside an if (!r-main ) { ... } block. So only the 'main' request is wrapped but not any subrequests. Ron On Mon, 2009-07-13 at 20:45 +0200,