{"id":26,"date":"2010-06-11T10:17:54","date_gmt":"2010-06-11T07:47:54","guid":{"rendered":"http:\/\/www.shvek.co.za\/?p=26"},"modified":"2010-06-11T10:18:10","modified_gmt":"2010-06-11T07:48:10","slug":"speed-up-your-webserver","status":"publish","type":"post","link":"https:\/\/shvek.com\/?p=26","title":{"rendered":"Speed up your Webserver!"},"content":{"rendered":"<p>Since we posted the FIFA World Cup Calendar 2010 on our company&#8217;s web site, traffic has increased dramatically.<\/p>\n<p>We have had over 3.5 million hits in 10 days.<\/p>\n<p>The problem was that the site was using more than 2 Gigs a day. In South Africa bandwidth is not cheap. Our site uses Joomla and even after enabling Gzip compression it did not help as only html\/php content was being compressed.<\/p>\n<p>Most of the traffic generated was because of the CSS &amp; Javascript files<\/p>\n<p>The fix!<\/p>\n<p>I decided to modify the .htaccess file to compress all content outgoing on the webserver, our server uses mimimal load.<\/p>\n<p>These are the lines I added to my .htaccess<\/p>\n<blockquote><p>&lt;ifmodule mod_deflate.c&gt;<br \/>\nAddOutputFilterByType DEFLATE text\/text text\/html text\/plain text\/xml text\/css application\/x-javascript application\/javascript<br \/>\n&lt;\/ifmodule&gt;<\/p><\/blockquote>\n<p>Also this handy site allowed me to test various pages &amp; files if the server was serving them compressed.<\/p>\n<p><a title=\"Gzipped Web Page Content Tester\" href=\"http:\/\/www.gidnetwork.com\/tools\/gzip-test.php\" target=\"_blank\">http:\/\/www.gidnetwork.com\/tools\/gzip-test.php<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since we posted the FIFA World Cup Calendar 2010 on our company&#8217;s web site, traffic has increased dramatically. We have had over 3.5 million hits in<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/shvek.com\/index.php?rest_route=\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shvek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shvek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shvek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shvek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26"}],"version-history":[{"count":2,"href":"https:\/\/shvek.com\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":28,"href":"https:\/\/shvek.com\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions\/28"}],"wp:attachment":[{"href":"https:\/\/shvek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shvek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shvek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}