hi
i want to use keep-alive feature of apache how can i use that with my host (.htaccess) and what should be the best values for the parameters like KeepAliveTimeout
Thanks
hi
i want to use keep-alive feature of apache how can i use that with my host (.htaccess) and what should be the best values for the parameters like KeepAliveTimeout
Thanks
It very much depends on your site and the amount of traffic it receives. If a user comes to your site, then clicks through to another page within the KeepAliveTimeout setting (default is 15), a new TCP does not have to be created. This can really help with overhead.
On the other hand, any Apache processes that are currently tied up w/ existing visitors will not be able to talk to the new ones. So you may have to increase the total number of Apache processes that are available.
In short... it requires tweaking.
You can't control keepalive behaviour in an .htaccess
. Keepalives are a host-level feature, not one where different directories can behave differently depending on the per-directory htaccess info.
If you are on the kind of basic shared hosting that only gives you .htaccess
to configure your sites, you can't change the keepalive settings. Presumably the hosting company will have set them appropriately, or just left them on the default settings, which are usually fine.