<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Debian Tutorials &#187; pound</title>
	<atom:link href="http://www.debiantutorials.com/tag/pound/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debiantutorials.com</link>
	<description>Copy/Paste tutorials for Debian Linux</description>
	<lastBuildDate>Wed, 18 Aug 2010 00:35:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simple load balancing using Pound</title>
		<link>http://www.debiantutorials.com/simple-load-balancing-using-pound/</link>
		<comments>http://www.debiantutorials.com/simple-load-balancing-using-pound/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 20:30:47 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[load balancing]]></category>
		<category><![CDATA[pound]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=213</guid>
		<description><![CDATA[The Pound program is a reverse proxy, load balancer and HTTPS front-end for Web server(s). Pound was developed to enable distributing the load among several Web-servers and to allow for a convenient SSL wrapper for those Web servers that do not offer it natively.
1. Install the pound package
apt-get install pound

2. Configure the load balancing. Replace [...]]]></description>
			<content:encoded><![CDATA[<p>The Pound program is a reverse proxy, load balancer and HTTPS front-end for Web server(s). Pound was developed to enable distributing the load among several Web-servers and to allow for a convenient SSL wrapper for those Web servers that do not offer it natively.</p>
<p>1. Install the pound package</p>
<p><code>apt-get install pound<br />
</code><span id="more-213"></span></p>
<p>2. Configure the load balancing. Replace everything below and including ListenHTTP with something like this: (pico /etc/pound/pound.cfg)</p>
<p><code>ListenHTTP<br />
&nbsp;&nbsp;Address 0.0.0.0<br />
&nbsp;&nbsp;Port 80<br />
&nbsp;&nbsp;xHTTP 0<br />
&nbsp;<br />
&nbsp;&nbsp;Service<br />
&nbsp;&nbsp;&nbsp;&nbsp;HeadRequire "Host: .*www.google.com.*"<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;BackEnd<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Address 209.85.227.103<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Port 80<br />
&nbsp;&nbsp;&nbsp;&nbsp;End<br />
&nbsp;&nbsp;&nbsp;&nbsp;BackEnd<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Address 209.85.227.104<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Port 80<br />
&nbsp;&nbsp;&nbsp;&nbsp;End<br />
&nbsp;&nbsp;&nbsp;&nbsp;BackEnd<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Address 209.85.227.105<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Port 80<br />
&nbsp;&nbsp;&nbsp;&nbsp;End<br />
&nbsp;&nbsp;&nbsp;&nbsp;BackEnd<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Address 209.85.227.106<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Port 80<br />
&nbsp;&nbsp;&nbsp;&nbsp;End<br />
&nbsp;&nbsp;End<br />
End<br />
</code></p>
<p><em>In this example we'll be listening for www.google.com and forward requests to 4 of Google's web servers/clusters. You can of course replace the domain with one of your own and point it to any servers. The servers can be on different networks, using different platforms and you can even forward different paths to different servers. Ex. www.google.com/apps could be forwarded to 1.2.3.4 while www.google.com is forwarded to 2.3.4.5. <a href="http://www.apsis.ch/pound/" target="_blank">Click here for more details about Pound</a></em> </p>
<p>3. Enable the Pound service (pico /etc/default/pound)</p>
<p><code>startup=1<br />
</code></p>
<p>4. Restart Pound</p>
<p><code>/etc/init.d/pound start<br />
</code></p>
<p>You must point the dns record for www.google.com to your server's IP address. You could use the hosts file to do this or use another domain.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/simple-load-balancing-using-pound/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
