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

Re: Module that forward requests

2009-07-14 Thread Eric Covener
On Tue, Jul 14, 2009 at 7:37 AM, Tom Evanstevans...@googlemail.com 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

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_qualify_uri()

Re: Module that forward requests

2009-07-14 Thread ricardo13
Eric Covener wrote: On Tue, Jul 14, 2009 at 7:37 AM, Tom Evanstevans...@googlemail.com 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
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: Probably OT. Difficulty implementing content handler Apache2

2009-07-14 Thread Kevac Marko
Check for segmentation faults in global error-log. -- Marko Kevac Gilda Radner - Adopted kids are such a pain - you have to teach them how to look like you. - http://www.brainyquote.com/quotes/authors/g/gilda_radner.html

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 a module that forward

RE: AuthBasicProvider failover and mod_authnz_ldap

2009-07-14 Thread Plüm, Rüdiger, VF-Group
-Original Message- From: Eric Covener Sent: Montag, 13. Juli 2009 23:31 To: dev@httpd.apache.org Subject: AuthBasicProvider failover and mod_authnz_ldap PR#47521 points out that when mod_authnz_ldap has some fatal LDAP connectivity error, it doesn't allow other

Re: AuthBasicProvider failover and mod_authnz_ldap

2009-07-14 Thread Graham Leggett
Plüm, Rüdiger, VF-Group wrote: Haven't thought this through but from a first glance it makes sense that the next provider can continue if the first one had a fatal error. +1. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature

Re: FTP open questions

2009-07-14 Thread Jorge Schrauwen
On Tue, Jul 14, 2009 at 2:28 AM, William A. Rowe, Jr.wr...@rowe-clan.net wrote: 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

Re: FTP open questions

2009-07-14 Thread Sander Temme
On Jul 14, 2009, at 8:02 AM, Jorge Schrauwen wrote: On Tue, Jul 14, 2009 at 2:28 AM, William A. Rowe, Should we advertise the commands we have not implemented, or remove them? Yes, It's always useful to know for a more advance user. +1 on keeping them. Should we alert the user to the

Apache delivers PHP source code for vim backup files

2009-07-14 Thread Jens Winter
Hi, I wonder which rules are used to decide if a file is processed by PHP. For example x.php, x.php.bak and x.php.x~ are all processed, but x.php~ is not (at least by default). This could be an issue if you use vim or similar editors to edit the config files of e.g. WordPress or MediaWiki

RE: mod_deflate DoS using HEAD

2009-07-14 Thread Plüm, Rüdiger, VF-Group
-Original Message- From: William A. Rowe, Jr. Sent: Montag, 13. Juli 2009 23:58 To: dev@httpd.apache.org Subject: Re: mod_deflate DoS using HEAD Nick Kew wrote: Eric Covener wrote: /* For a 304 response, only change the headers */ -if (r-status ==

Re: mod_deflate DoS using HEAD

2009-07-14 Thread William A. Rowe, Jr.
Plüm, Rüdiger, VF-Group wrote: +/* + * Optimization: If we are a HEAD request and bytes_sent is not zero + * it means that we have passed the content-length filter once and + * have more data to sent. This means that the content-length filter + *

Re: Apache delivers PHP source code for vim backup files

2009-07-14 Thread Eric Covener
On Tue, Jul 14, 2009 at 11:54 AM, Jens Winterice...@uni-paderborn.de wrote: Hi, I wonder which rules are used to decide if a file is processed by PHP. For example x.php, x.php.bak and x.php.x~ are all processed, but x.php~ is not (at least by default). This could be an issue if you use vim or

Re: FTP open questions

2009-07-14 Thread Jim Jagielski
On Jul 13, 2009, at 8:28 PM, William A. Rowe, Jr. wrote: 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

Re: mod_deflate DoS using HEAD

2009-07-14 Thread Nick Kew
William A. Rowe, Jr. wrote: Plüm, Rüdiger, VF-Group wrote: +/* + * Optimization: If we are a HEAD request and bytes_sent is not zero + * it means that we have passed the content-length filter once and + * have more data to sent. This means that the

Re: mod_deflate DoS using HEAD

2009-07-14 Thread Nick Kew
Nick Kew wrote: The content-length could've been set anyway - the simplest case being a static file that's been stated. Have we definitely unset it? D'oh. Of course we have. Is this really an optimization? Sounds like correctness :) And do we want to also validate that Accept-Encoding:

Re: mod_deflate DoS using HEAD

2009-07-14 Thread Roy T. Fielding
On Jul 14, 2009, at 10:02 AM, Nick Kew wrote: That, on the other hand, stands. In the case of an HTTP/1.0 request, we'd be closing the connection to signal end-of-response. Not on a HEAD request. Roy

Re: mod_deflate DoS using HEAD

2009-07-14 Thread William A. Rowe, Jr.
Roy T. Fielding wrote: On Jul 14, 2009, at 10:02 AM, Nick Kew wrote: That, on the other hand, stands. In the case of an HTTP/1.0 request, we'd be closing the connection to signal end-of-response. Not on a HEAD request. But on the GET request with the deflate filter installed, we would not

[warn] worker http://ip_maquina/ already used by another worker

2009-07-14 Thread ricardo13
Hi, I have a webcluster and I'm prioritize the requests. I modify request_rec adding a field called prior and conditional test ( IF() ) in mod_rewrite for classify. All time that start APACHE show the follow: # sudo apachectl -k start [warn] worker http://ip_maquina/ already used by another

Re: Module that forward requests

2009-07-14 Thread ricardo13
Hi Eric. NOOWWW I understood !!! But happen a error !! I posted this error. Help me Thank you Ricardo 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,

Hacking in an SLA for proxied requests in mod_proxy_http

2009-07-14 Thread Neal Richter
Hey all, I wanted to enforce an SLA on certain http requests to apache. Essentially provide a the external client users an guarantee that a valid response will be given within XXms and all errors are suppressed. This is for an ReST API that returns JSON or XML data. Ronald Park attempted to do