{"id":443,"date":"2010-03-18T17:45:39","date_gmt":"2010-03-18T15:45:39","guid":{"rendered":"http:\/\/self.mestrona.net\/blog\/2010\/simulate-slow-connection-with-the-bandwith-module-for-apache\/"},"modified":"2014-08-03T18:39:18","modified_gmt":"2014-08-03T16:39:18","slug":"simulate-slow-connection-with-the-bandwith-module-for-apache","status":"publish","type":"post","link":"https:\/\/s3lf.de\/blog\/2010\/simulate-slow-connection-with-the-bandwith-module-for-apache\/","title":{"rendered":"Simulate slow connection with the Bandwith Module for Apache"},"content":{"rendered":"<p>For testing websites that are intended for use in the fields, I often wanted to make your <a href=\"http:\/\/localhost\/\" class=\"moz-txt-link-freetext\">http:\/\/localhost<\/a> feel like on a modem connection. The easiest solution I found is the the Apache module mod_bw.<\/p>\n<p>This is a short setup guide for Ubuntu Webdevelopers that care about their users or everybody who want&#8217;s to get an idea about how Internet in large parts of the world feels \ud83d\ude42<\/p>\n<h2>Setup on Ubuntu<\/h2>\n<ol>\n<li>Install the module using for example using <code>aptitude install libapache2-mod-bw<\/code><\/li>\n<li>Activate the module: <code>a2enmod bw<\/code><\/li>\n<li>Insert the following configuration to your virtual host:<br \/>\n<code>BandWidthModule On<br \/>\nForceBandWidthModule On<br \/>\nBandWidth all 1024<\/code><\/li>\n<li>Restart Apache<\/li>\n<li>If not done already, you might should also install also the Webdeveloper plugin for<br \/>\nFirefox and choose Web Developer -&gt; Disable -&gt; Disable Cache<\/li>\n<\/ol>\n<p>Now browsing on <a href=\"http:\/\/localhost\/\" class=\"moz-txt-link-freetext\">http:\/\/localhost<\/a> will be at 1kbyte per second.<\/p>\n<h2>Optimize your Website<\/h2>\n<ul>\n<li>Using mod_gzip to compress data<\/li>\n<li>Minify CSS, Javascript and optimize Pictures<\/li>\n<\/ul>\n<p>Additional tipps can be found in Yahoo&#8217;s <a href=\"http:\/\/developer.yahoo.com\/performance\/rules.html\">Best Practices for Speeding Up Your Web Site<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For testing websites that are intended for use in the fields, I often wanted to make your http:\/\/localhost feel like on a modem connection. The easiest solution I found is the the Apache module mod_bw. This is a short setup guide for Ubuntu Webdevelopers that care about their users or everybody who want&#8217;s to get [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56,57],"tags":[],"class_list":["post-443","post","type-post","status-publish","format-standard","hentry","category-aethiopien","category-webdevelopment-2"],"_links":{"self":[{"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/posts\/443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/comments?post=443"}],"version-history":[{"count":1,"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/posts\/443\/revisions"}],"predecessor-version":[{"id":500,"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/posts\/443\/revisions\/500"}],"wp:attachment":[{"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/media?parent=443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/categories?post=443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/tags?post=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}