2.2.x: New mod_proxy configuration directive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux