How to enable `Keep Alive` in a shared hosting environment?

14,088

Which KeepAlive setting? If you are meaning whether the server supports persistent HTTP connections and how long the relevant timeouts are, then this is not something you can control from .htaccess or php.ini - it is something that can only be configured in the core Apache configuration files.

Share:
14,088

Related videos on Youtube

Såm
Author by

Såm

Updated on September 17, 2022

Comments

  • Såm
    Såm almost 2 years

    I have only acces to the php.ini file and my good old .htaccess file.

    Where do I enable the Keep Alive setting?

    ( Im on a plesk 8.2 )

  • Såm
    Såm over 13 years
    I see.. Bummer! But, is it likely virtual / shared hosters will enable it from a customers request? ( i have put on my naive trousers on for now )
  • Axel
    Axel over 13 years
    Most hosts will use the default, which is to have it enabled with a timeout of 15s. They may reduce that timeout to reduce server load (as more persistent connections hanging around for longer means needing more Apache workers to serve them), but I wouldn't have thought they'd turn it off as it can significantly reduce the load imposed by a client loading, for example, a HTML page that references many small graphics so is a benefit in a busy shared environment.