<?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>JMX::Productions &#187; Pound</title>
	<atom:link href="http://jeremiahx.com/category/pound/feed/" rel="self" type="application/rss+xml" />
	<link>http://jeremiahx.com</link>
	<description>The Blog of J.J. Merrick</description>
	<lastBuildDate>Tue, 23 Feb 2010 03:59:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How-To: Sending one directory to one server and another directory to another server via POUND</title>
		<link>http://jeremiahx.com/2007/11/14/how-to-sending-one-directory-to-one-server-and-another-directory-to-another-server-via-pound/</link>
		<comments>http://jeremiahx.com/2007/11/14/how-to-sending-one-directory-to-one-server-and-another-directory-to-another-server-via-pound/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 05:48:45 +0000</pubDate>
		<dc:creator>J.J. Merrick</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Pound]]></category>

		<guid isPermaLink="false">http://jeremiahx.com/2007/11/14/how-to-sending-one-directory-to-one-server-and-another-directory-to-another-server-via-pound/</guid>
		<description><![CDATA[So I came across an issue today where I needed to make sure that a sub directory off one of our domains only went to 1 server behind the load balancer. Basically we had installed wordpress and since it doesn&#8217;t balance very nicely it only needed to be installed on 1 server and the rest [...]]]></description>
			<content:encoded><![CDATA[<p>So I came across an issue today where I needed to make sure that a sub directory off one of our domains only went to 1 server behind the load balancer. Basically we had installed wordpress and since it doesn&#8217;t balance very nicely it only needed to be installed on 1 server and the rest of the domain to act normally. The blog resides in a directory called /blog.</p>
<p>We use a program called Pound to do our load balancing. It is open source and can make any server into a load balancer. I love it because it can do SSL and reverse proxy.</p>
<p>It is included with most ports packages and I won&#8217;t go into the install here. Basically it uses regular expressions to send a connection to a backend server based on rules. It is totally powered by a single config file. Here is the syntax you will need in that config file&#8230;</p>
<pre>
<code>
ListenHTTP
  Address 192.168.5.20
  Port    80

Service
 Url         ".*/(blog|forum)*"
 BackEnd
    Address  192.168.5.105
     Port  80
 End
End

  Service
    BackEnd
      Address 192.168.5.104
      Port    80
    End
    BackEnd
      Address 192.168.5.105
      Port    80
    End
  End
End

</code></pre>
<p>That&#8217;s it! See how easy that was?!</p>
]]></content:encoded>
			<wfw:commentRss>http://jeremiahx.com/2007/11/14/how-to-sending-one-directory-to-one-server-and-another-directory-to-another-server-via-pound/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
