[support] How to configure Drupal with reverse proxy (Apache 2.2 with mod_proxy)

Ivan Goretha workingivan at hotmail.com
Mon Jun 29 13:20:51 UTC 2009


Hi,

I have a project that requires a reverse proxy server be installed in front of Drupal.
I have set the following parameters in settings.php in Drupal:

$base_url = 'http://www.mywebsite.com';
$conf = array(
   'reverse_proxy' => TRUE,
   'reverse_proxy_addresses' => array('192.168.1.1', ),
 );


where 192.168.1.1 is the IP address of www.mywebsite.com.
The IP address of Drupal is 192.168.1.2 and the IP address of the database is 192.168.1.3.
Drupal and database servers can't be accessed from public.

When I go to http://www.mywebsite.com, I can see Drupal log in page.
However I am unable to login from this page.
After I enter my username and password and click Submit, I will be returned to the same page.
However if I go to http://192.168.1.2 website directly, I can login like usual.

Proxy config on Apache (webserver):





<IfModule mod_proxy.c>


ProxyRequests Off


ProxyPass / http://192.168.1.2/


ProxyHTMLURLMap http://192.168.1.2 /





<Location />


   ProxyPassReverse /


   SetOutputFilter proxy-html


   ProxyHTMLURLMap / /


   RequestHeader unset Accept-Encoding


</Location>





ProxyHTMLLogVerbose On





</IfModule>

Does anybody know how to get around this problem?
Any advice will be really appreciated.
Thanks!

Regards,
Ivan



_________________________________________________________________
What can you do with the new Windows Live? Find out
http://www.microsoft.com/windows/windowslive/default.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/support/attachments/20090629/6bf6930f/attachment.htm>


More information about the support mailing list