How to enable mod_expires and mod_headers on any H-Sphere controlled web server?

1. Go to the directory "/hsphere/shared/apache2/conf"

2. There will be 3 files :- httpd.conf, httpd.conf.tmpl and httpd.conf.tmpl.custom.
   If "httpd.conf.tmpl.custom" doesn't exist, then make a copy of "httpd.conf.tmpl" as "httpd.conf.tmpl.custom"

3. Edit "httpd.conf.tmpl.custom" by copying lines from "" and "" as follows:

   The end result should look like this:

    LoadModule expires_module modules/
    LoadModule headers_module modules/
    <IfDefine ALLMODULES>
    LoadModule log_forensic_module modules/
    LoadModule expires_module modules/
    LoadModule headers_module modules/
    LoadModule ident_module modules/
    LoadModule usertrack_module modules/

4. Restart Apache forcefully by using the script below:-

5. That's all.
   Check the web server's phpinfo page and see whether mod_expires and mod_headers are enabled or not.

Abhishek Wednesday 16 October 2013 - 8:17 pm | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.