I have an apache 2.2 server infront of a tomcat 6 server. using mod_proxy_ajp on apache to proxy requests to tomcat. pretty standard setup.
If I need to disable keep-alive connections for browsers, how do i do this?
I need to do disable keep-alive http requests because i suspect some of my users have firewalls that might be dropping an un-active keep-alive connection which randomly causes problems.
There are various 'keep alive' bits and pieces of configuration on both apache and tomcat.
httpd.conf has "KeepAlive Off" (which does not seem to be making a difference in my case)
also in httpd.conf where you set ProxyPass, you can have a parameter "keepalive" but this is only supposed to help if there are proxies/firewalls between my apache and tomcat, which there isn't in my case and is not the problem.
Tomcat itself, the http connector has "keepAliveTimeout" and "maxKeepAliveRequests" but this is only for http connectors.
The tomcat ajp connector also has a "keepAliveTimeout", but this is for ajp requests coming from apache, not sure if this should/flows on to the real HTTP request from the browser to apache.
To top it all there is also the HTTP1.0 vs HTTP1.1 differentiation.
So it gets confusing.... can someone please explain?