Re: Module that forward requests

2009-07-14 Thread ricardo13
equest. >> >> Thank you. >> Ricardo >> > http://www.nabble.com/file/p24478628/meu_modulo.c meu_modulo.c > -- View this message in context: http://www.nabble.com/Module-that-forward-requests-tp24461810p24479756.html Sent from the Apache HTTP Server - Module Writers mailing list archive at Nabble.com.

Re: Module that forward requests

2009-07-14 Thread ricardo13
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 > http://www.nabble.com/file/p24478628/meu_modulo.c meu_modulo.c -- View this message in context: h

Re: Module that forward requests

2009-07-14 Thread ricardo13
gt;>> "port_machine", r->filename); > > > # of %s in format doesn't agree with # of arguments, right? > > Ok. I don't see. I've resolved this problem. > And about proxy ?? That's right ?? > > Thank you. > Ricardo > -- > Eri

Re: Module that forward requests

2009-07-14 Thread ricardo13
it tend to keep printing random bits of memory > until they happen to hit a null byte. > > OK. And about proxy ? That's right ? > Remenber that Im trying to develop a module contains reverse proxy. > > Thank you > Ricardo > > Cheers > > Tom > > > -- View this message in context: http://www.nabble.com/Module-that-forward-requests-tp24461810p24477905.html Sent from the Apache HTTP Server - Module Writers mailing list archive at Nabble.com.

Re: Module that forward requests

2009-07-14 Thread Eric Covener
On Tue, Jul 14, 2009 at 7:37 AM, Tom Evans wrote: > On Tue, 2009-07-14 at 03:22 -0700, ricardo13 wrote: >> r->filename = apr_psprintf(r->pool, "%s://%s%s%s%s", "http", "ip_machine", >> "port_machine", r->filename); # of %s in format doesn't agree with # of arguments, right? -- Eric Covener cov

Re: Module that forward requests

2009-07-14 Thread Tom Evans
On Tue, 2009-07-14 at 03:22 -0700, ricardo13 wrote: > Hi, > > Yesterday, I studied mod_rewrite very much and I believe that > fully_qualify_uri() function is where mod_rewrite does proxy. > > That's right ?? This is way ?? > > Other question, I copied fully_qualify_uri() function, but when print

Re: Module that forward requests

2009-07-14 Thread ricardo13
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-tp24461810p24476948.html Sent from the Apache HTTP Server - Module Writers mailing list archive at Nabble.com.

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 1:30 PM, ricardo13 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

Re: Module that forward requests

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

Re: Module that forward requests

2009-07-13 Thread ricardo13
lying to? > Weird :confused: > > -- > Eric Covener > cove...@gmail.com > > -- View this message in context: http://www.nabble.com/Module-that-forward-requests-tp24461810p24463773.html Sent from the Apache HTTP Server - Module Writers mailing list archive at Nabble.com.

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 10:46 AM, ricardo13 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 external prog

Re: Module that forward requests

2009-07-13 Thread ricardo13
te 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 external program. Because my external > program classifies requests. > > > if you're not looking to do much development >

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 10:33 AM, ricardo13 wrote: > > > > Eric Covener wrote: >> >> On Mon, Jul 13, 2009 at 10:06 AM, ricardo13 >> 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 reque

Re: Module that forward requests

2009-07-13 Thread ricardo13
gt; 3° When request arrive this machine, my worker.c will be able to analyze > request_rec->priority (1 or 2) then threads priotize the requests. > > Thank you > Ricardo > > > > > -- > Eric Covener > cove...@gmail.com > > -- View this message in contex

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 10:06 AM, ricardo13 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 already illustrates th

Re: Module that forward requests

2009-07-13 Thread ricardo13
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 ? > > -- > Eric Covener > cove...@gmail.com > > -- View this message in context: http:/

RE: Module that forward requests

2009-07-13 Thread ricardo13
tems Support > (517)703-2580 > > -Original Message- > From: ricardo13 [mailto:ricardoogra...@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 A

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 9:53 AM, Eric Covener wrote: > On Mon, Jul 13, 2009 at 9:48 AM, ricardo13 wrote: > >>> Only opinion. Is this difficult ?? or easy ?? >>> Because I haven't idea !! > > It's difficult. I'd suggest finding a way to use existing modules. Use or modify, that is. -- Eric Covene

RE: Module that forward requests

2009-07-13 Thread Houser, Rick
--- From: ricardo13 [mailto:ricardoogra...@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 p

Re: Module that forward requests

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

Re: Module that forward requests

2009-07-13 Thread ricardo13
u > Ricardo > > > -- > Eric Covener > cove...@gmail.com > > -- View this message in context: http://www.nabble.com/Module-that-forward-requests-tp24461810p24462055.html Sent from the Apache HTTP Server - Module Writers mailing list archive at Nabble.com.

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 9:34 AM, ricardo13 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 request. Look

Module that forward requests

2009-07-13 Thread ricardo13
t: http://www.nabble.com/Module-that-forward-requests-tp24461810p24461810.html Sent from the Apache HTTP Server - Module Writers mailing list archive at Nabble.com.