{"id":108,"date":"2013-10-16T20:17:00","date_gmt":"2013-10-16T20:17:00","guid":{"rendered":"http:\/\/290@jodohost.com\/\/blog\/"},"modified":"2013-10-16T20:17:00","modified_gmt":"2013-10-16T20:17:00","slug":"how-to-enable-mod_expires-and-mod_headers-on-any-h-sphere-controlled-web-server","status":"publish","type":"post","link":"http:\/\/www.jodohost.com\/blog\/index.php\/2013\/10\/16\/how-to-enable-mod_expires-and-mod_headers-on-any-h-sphere-controlled-web-server\/","title":{"rendered":"How to enable mod_expires and mod_headers on any H-Sphere controlled web server?"},"content":{"rendered":"<p>Steps:-<br \/>1. Go to the directory &#8220;\/hsphere\/shared\/apache2\/conf&#8221;<\/p>\n<p>2. There will be 3 files :- httpd.conf, httpd.conf.tmpl and httpd.conf.tmpl.custom.<br \/>\u00a0\u00a0 If &#8220;httpd.conf.tmpl.custom&#8221; doesn&#8217;t exist, then make a copy of &#8220;httpd.conf.tmpl&#8221; as &#8220;httpd.conf.tmpl.custom&#8221;<\/p>\n<p>3. Edit &#8220;httpd.conf.tmpl.custom&#8221; by copying lines from &#8220;mod_expires.so&#8221; and &#8220;mod_headers.so&#8221; as follows:<\/p>\n<p>\u00a0\u00a0 The end result should look like this:<\/p>\n<p>\u00a0\u00a0\u00a0 LoadModule expires_module modules\/mod_expires.so<br \/>\u00a0\u00a0\u00a0 LoadModule headers_module modules\/mod_headers.so<br \/>\u00a0\u00a0\u00a0 <ifDefine ALLMODULES><br \/>\u00a0\u00a0\u00a0 LoadModule log_forensic_module modules\/mod_log_forensic.so<br \/>\u00a0\u00a0\u00a0 LoadModule expires_module modules\/mod_expires.so<br \/>\u00a0\u00a0\u00a0 LoadModule headers_module modules\/mod_headers.so<br \/>\u00a0\u00a0\u00a0 LoadModule ident_module modules\/mod_ident.so<br \/>\u00a0\u00a0\u00a0 LoadModule usertrack_module modules\/mod_usertrack.so<br \/>\u00a0\u00a0\u00a0 <\/ifDefine><\/p>\n<p>4. Restart Apache forcefully by using the script below:-<br \/>\u00a0\u00a0 \/hsphere\/shared\/scripts\/apache-restart<\/p>\n<p>5. That&#8217;s all.<br \/>\u00a0\u00a0 Check the web server&#8217;s phpinfo page and see whether mod_expires and mod_headers are enabled or not.<\/p>\n<p> ]]><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Steps:-1. Go to the directory &#8220;\/hsphere\/shared\/apache2\/conf&#8221; 2. There will be 3 files :- httpd.conf, httpd.conf.tmpl and httpd.conf.tmpl.custom.\u00a0\u00a0 If &#8220;httpd.conf.tmpl.custom&#8221; doesn&#8217;t exist, then make a copy of &#8220;httpd.conf.tmpl&#8221; as &#8220;httpd.conf.tmpl.custom&#8221; 3. Edit &#8220;httpd.conf.tmpl.custom&#8221; by copying lines from &#8220;mod_expires.so&#8221; and &#8220;mod_headers.so&#8221; as follows: \u00a0\u00a0 The end result should look like this: \u00a0\u00a0\u00a0 LoadModule expires_module modules\/mod_expires.so\u00a0\u00a0\u00a0 LoadModule headers_module [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/108"}],"collection":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":0,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}