You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Axel-Stéphane SMORGRAV <Ax...@europe.adp.com> on 2007/09/17 12:43:21 UTC

[users@httpd] 2.2.x: New mod_proxy configuration directive

Hi

Those of you who use mod_rewrite in a reverse-proxy scenario (RewriteRule with the [P] flag) might be interested in http://issues.apache.org/bugzilla/show_bug.cgi?id=43308.

In such a scenario mod_proxy will not be able to use persistent connections (KeepAlive) to the origin server. This is due to the fact that proxy workers are created during the configuration phase for each ProxyPass directive. Therefore, if your proxy rules are defined using RewriteRule [P], unless there is also a suitable ProxyPass directive, the default proxy worker will be used and the backend connections will be closed after having served a request.

There is a performance penalty to not using persistent connections. I have therefore posted a patch against mod_proxy 2.2.4 for the above mentioned PR that dynamically creates a new worker each time this is necessary. A new configuration directive, ProxyMaxAddtlWorkers #workers, default value 0, allows you to enable the dynamic creation of such workers as well as limiting the number of workers that may be created dynamically:

ProxyMaxAddtlWorkers 5

If you the above PR applies to your environment, you are encouraged to test the patch and post comments on Bugzilla, whether you experience a problem or not.

BR
-ascs

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org