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="'courier new', monospace">$conf = array(</font></div><div>
<font class="Apple-style-span" face="'courier new', monospace"> 'reverse_proxy' => TRUE,</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> 'reverse_proxy_addresses' => array('10.4.1.18'),</font></div>
<div><font class="Apple-style-span" face="'courier new', 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'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"><<a href="mailto:fnikola@cognisync.com">fnikola@cognisync.com</a>></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:"Courier New"">#Use . first because we have multiple subdomains</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">$cookie_domain = '.<a href="http://ourdomain.com" target="_blank">ourdomain.com</a>';</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">$conf['reverse_proxy'] = TRUE;</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> </span></p><p class="MsoNormal">
<span style="font-family:"Courier New"">$conf['reverse_proxy_addresses'] = array('999.999.999.99');</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:"Courier New"">Service</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> BackEnd</span></p><p class="MsoNormal">
<span style="font-family:"Courier New""> Address <a href="http://web.server.one.net" target="_blank">web.server.one.net</a></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> Port 80</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Priority 5</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> End</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> BackEnd</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Address <a href="http://web.server.two.net" target="_blank">web.server.two.net</a></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> Port 80</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Priority 5</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> End</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> Session</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Type COOKIE</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> ID "session_key"</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> TTL 540</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> End</span></p><p class="MsoNormal"><span style="font-family:"Courier New"">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>