We run a similar configuration, Pound in front of 2 web servers, with multiple hostnames (<a href="http://foo.example.com">foo.example.com</a>, <a href="http://bar.example.com">bar.example.com</a>, <a href="http://woof.example.com">woof.example.com</a>).<div>
<br></div><div>Using Drupal 6, the only configuration changes we have to support this are:</div><div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">$conf = array(</font></div><div>
<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">   &#39;reverse_proxy&#39; =&gt; TRUE,</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">   &#39;reverse_proxy_addresses&#39; =&gt; array(&#39;10.4.1.18&#39;),</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"> );</font></div><div><br></div>We do not use any Session clause in our Service specification in the Pound configuration.  It seems to work fine without it.  (I did not set it up myself.)  That is, there are only Backend clauses.</div>
<div><br></div><div>For what it&#39;s worth.</div><div>..chris</div><div><br></div><div><br><div class="gmail_quote">On Tue, Nov 16, 2010 at 12:42 PM, Frank Nikola <span dir="ltr">&lt;<a href="mailto:fnikola@cognisync.com">fnikola@cognisync.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">We are having issues with session persistence in Drupal when using the Pound reverse proxy server. Currently, we are losing our session when clicking on a link to add a comment to a node for subdomains only. This issue (losing our session) does not happen when on the main domain (<a href="http://www.example.com" target="_blank">www.example.com</a>), but only when on subdomains (<a href="http://sub1.example.com" target="_blank">sub1.example.com</a> and <a href="http://sub2.example.com" target="_blank">sub2.example.com</a>).</p>
<p class="MsoNormal"> </p><p class="MsoNormal">Our current environment has the Pound reverse proxy server in front of two Drupal web servers that are each connected to an NFS mount where the Drupal site code exists.</p><p class="MsoNormal">
 </p><p class="MsoNormal">We have made the following changes to the settings.php file as directed for reverse proxy:</p><p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">#Use . first because we have multiple subdomains</span></p>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">$cookie_domain = &#39;.<a href="http://ourdomain.com" target="_blank">ourdomain.com</a>&#39;;</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"> </span></p>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">$conf[&#39;reverse_proxy&#39;] = TRUE;</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"> </span></p><p class="MsoNormal">
<span style="font-family:&quot;Courier New&quot;">$conf[&#39;reverse_proxy_addresses&#39;] = array(&#39;999.999.999.99&#39;);</span></p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">And have added the Drupal cookie in the reverse proxy configuration file:</p>
<p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">Service</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">    BackEnd</span></p><p class="MsoNormal">
<span style="font-family:&quot;Courier New&quot;">        Address <a href="http://web.server.one.net" target="_blank">web.server.one.net</a></span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">        Port    80</span></p>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">        Priority 5</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">    End</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">    BackEnd</span></p>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">        Address <a href="http://web.server.two.net" target="_blank">web.server.two.net</a></span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">        Port    80</span></p>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">        Priority 5</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">    End</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">    Session</span></p>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">        Type    COOKIE</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">        ID      &quot;session_key&quot;</span></p>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">        TTL     540</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">    End</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">End</span></p>
<p class="MsoNormal"> </p><p class="MsoNormal">Is there anything else that needs to be configured to maintain session persistence for subdomains?</p><p class="MsoNormal"> </p></div></div></blockquote></div></div>