Re: Module that forward requests

2009-07-14 Thread ricardo13
Any suggestion ? Ricardo ricardo13 wrote: > > Hi all, > > This attached file is my proxy module. > > When I start APACHE write in log_error_log > Configuration Failed > > What's error ?? > > Thank you > Ricardo > > > ricardo13 wrote: >> >> hi, >> >> I'm newbie in APR and need develop

Re: Module that forward requests

2009-07-14 Thread ricardo13
Hi all, This attached file is my proxy module. When I start APACHE write in log_error_log Configuration Failed What's error ?? Thank you Ricardo 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]

Re: Module that forward requests

2009-07-14 Thread ricardo13
Eric Covener wrote: > > 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

Re: Module that forward requests

2009-07-14 Thread ricardo13
Tom Evans-3 wrote: > > 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_qua

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
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 value r->filename give error: For example, in code: r->filename =

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
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 f

Re: Module that forward requests

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

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
Eric Covener wrote: > > 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

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
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 requests ? How do I do it ? > > I'm not convinced you need a modul

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
Eric Covener wrote: > > 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. > >

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 >

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
> 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 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
Eric Covener wrote: > > 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 >> machi

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