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,

Bug report for Apache httpd-1.3 [2009/07/12]

2009-07-13 Thread bugzilla
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned

AuthBasicProvider failover and mod_authnz_ldap

2009-07-13 Thread Eric Covener
PR#47521 points out that when mod_authnz_ldap has some fatal LDAP connectivity error, it doesn't allow other AuthBasicProviders to have a shot at checking the userid. It seems like the normal use case for two providers is when there are two disjoint user repositories, and we only move on to

Re: mod_deflate DoS using HEAD

2009-07-13 Thread Nick Kew
Eric Covener wrote: /* For a 304 response, only change the headers */ -if (r-status == HTTP_NOT_MODIFIED) { +if (r-status == HTTP_NOT_MODIFIED || r-header_only) { Technically speaking, screws up the protocol. IMHO it would be acceptable provided: (a) it's an option

Re: mod_deflate DoS using HEAD

2009-07-13 Thread William A. Rowe, Jr.
Nick Kew wrote: Eric Covener wrote: /* For a 304 response, only change the headers */ -if (r-status == HTTP_NOT_MODIFIED) { +if (r-status == HTTP_NOT_MODIFIED || r-header_only) { Technically speaking, screws up the protocol. IMHO it would be acceptable

Re: mod_deflate DoS using HEAD

2009-07-13 Thread William A. Rowe, Jr.
William A. Rowe, Jr. wrote: * do not do server-side deflation (it is expensive). Whoops - forgot one more * do not do content deflation, only transfer deflation, which should not metered by the content-length, right?

FTP open questions

2009-07-13 Thread William A. Rowe, Jr.
Just finished the last showstopper. I would be happy to advance this to release / general availability vote with the next release, if we can determine just a few oddball issue resolutions. Jim and I have already gone ahead and moved many internal interfaces out of the private headers, which was