<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nocrash.net/index.php?action=history&amp;feed=atom&amp;title=Apache_2_bandwidth_limiting</id>
	<title>Apache 2 bandwidth limiting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nocrash.net/index.php?action=history&amp;feed=atom&amp;title=Apache_2_bandwidth_limiting"/>
	<link rel="alternate" type="text/html" href="https://wiki.nocrash.net/index.php?title=Apache_2_bandwidth_limiting&amp;action=history"/>
	<updated>2026-06-04T20:43:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.nocrash.net/index.php?title=Apache_2_bandwidth_limiting&amp;diff=64&amp;oldid=prev</id>
		<title>Chris at 14:52, 6 August 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.nocrash.net/index.php?title=Apache_2_bandwidth_limiting&amp;diff=64&amp;oldid=prev"/>
		<updated>2010-08-06T14:52:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:52, 6 August 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l64&quot; &gt;Line 64:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Now, recompile:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Now, recompile:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  # apxs -i -a -c mod_bw.c&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  # apxs -i -a -c mod_bw.c&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Main Page]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Chris</name></author>
	</entry>
	<entry>
		<id>https://wiki.nocrash.net/index.php?title=Apache_2_bandwidth_limiting&amp;diff=29&amp;oldid=prev</id>
		<title>Chris: Created page with &quot;Limiting bandwidth in Apache 2  Get the latest source from http://bwmod.sourceforge.net/ or a possibly older version from here.  Can configure different settings for each virtual...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nocrash.net/index.php?title=Apache_2_bandwidth_limiting&amp;diff=29&amp;oldid=prev"/>
		<updated>2010-08-04T20:34:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Limiting bandwidth in Apache 2  Get the latest source from http://bwmod.sourceforge.net/ or a possibly older version from here.  Can configure different settings for each virtual...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Limiting bandwidth in Apache 2&lt;br /&gt;
&lt;br /&gt;
Get the latest source from http://bwmod.sourceforge.net/&lt;br /&gt;
or a possibly older version from here.&lt;br /&gt;
&lt;br /&gt;
Can configure different settings for each virtual host!&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
         ServerAdmin &lt;br /&gt;
         user@domain.com &lt;br /&gt;
         ServerName www.nocrash.net&lt;br /&gt;
         DocumentRoot /var/www/html/nocrash&lt;br /&gt;
         BandWidthModule On&lt;br /&gt;
         ForceBandWidthModule On&lt;br /&gt;
         BandWidth 10.0.0.0/24 0&lt;br /&gt;
         #Bandwidth all 22000&lt;br /&gt;
         #MinBandwidth all 5000&lt;br /&gt;
         #This limits files over (or equal to) 300kb to 10kbytes/s&lt;br /&gt;
         #LargeFileLimit .jpg 300 10000&lt;br /&gt;
         &amp;lt;Directory /var/www/perl/www&amp;gt;&lt;br /&gt;
             AddOutputFilterByType MOD_BW image/jpeg image/jpg&lt;br /&gt;
             LargeFileLimit * 300 15000&lt;br /&gt;
         &amp;lt;/Directory&amp;gt;&lt;br /&gt;
         RewriteEngine on&lt;br /&gt;
         RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)&lt;br /&gt;
 &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fix for mod_bw when getting an error &amp;quot;undefined symbol: apr_atomic_cas&amp;quot;&lt;br /&gt;
I downloaded the Apache module mod_bw to see if I could simulate some &amp;quot;slow&amp;quot; connections. To compile the package you need to run the following command as root:&lt;br /&gt;
&lt;br /&gt;
 # apxs -i -a -c mod_bw.c&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That will install the module correctly, but when you add the configuration option to your vhost configs you might get an error &amp;quot;undefined symbol: apr_atomic_cas&amp;quot;. When that happens, open the file mod_bw.c and change the following:&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
&lt;br /&gt;
 /* Compatibility for ARP &amp;lt; 1 */&lt;br /&gt;
 #if (APR_MAJOR_VERSION &amp;lt; 1)&lt;br /&gt;
    #define apr_atomic_inc32 apr_atomic_inc&lt;br /&gt;
    #define apr_atomic_dec32 apr_atomic_dec&lt;br /&gt;
    #define apr_atomic_add32 apr_atomic_add&lt;br /&gt;
    #define apr_atomic_cas32 apr_atomic_cas&lt;br /&gt;
    #define apr_atomic_set32 apr_atomic_set&lt;br /&gt;
 #endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
AFTER&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 /* Compatibility for ARP &amp;lt; 1 */&lt;br /&gt;
 /*&lt;br /&gt;
 #if (APR_MAJOR_VERSION &amp;lt; 1)&lt;br /&gt;
   #define apr_atomic_inc32 apr_atomic_inc&lt;br /&gt;
   #define apr_atomic_dec32 apr_atomic_dec&lt;br /&gt;
   #define apr_atomic_add32 apr_atomic_add&lt;br /&gt;
   #define apr_atomic_cas32 apr_atomic_cas&lt;br /&gt;
   #define apr_atomic_set32 apr_atomic_set&lt;br /&gt;
 #endif&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
Now, recompile:&lt;br /&gt;
 # apxs -i -a -c mod_bw.c&lt;/div&gt;</summary>
		<author><name>Chris</name></author>
	</entry>
</feed>