[consulting] Running Drupal behind Reverse Proxy Server
Frank Nikola
fnikola at cognisync.com
Tue Nov 16 18:42:06 UTC 2010
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 (www.example.com), but
only when on subdomains (sub1.example.com and sub2.example.com).
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.
We have made the following changes to the settings.php file as directed for
reverse proxy:
#Use . first because we have multiple subdomains
$cookie_domain = '.ourdomain.com';
$conf['reverse_proxy'] = TRUE;
$conf['reverse_proxy_addresses'] = array('999.999.999.99');
And have added the Drupal cookie in the reverse proxy configuration file:
Service
BackEnd
Address web.server.one.net
Port 80
Priority 5
End
BackEnd
Address web.server.two.net
Port 80
Priority 5
End
Session
Type COOKIE
ID "session_key"
TTL 540
End
End
Is there anything else that needs to be configured to maintain session
persistence for subdomains?
Thanks,
Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/consulting/attachments/20101116/a0eb7356/attachment.html
More information about the consulting
mailing list