[support] Drupal7 behind Apache reverse proxy

Gordon Heydon gordon at heydon.com.au
Wed Apr 20 21:22:43 UTC 2011


Hi,

This should work fine, I think that you need to play with $base_url in your settings.php so that Drupal always outputs the correct url.

Gordon.

On 21/04/2011, at 3:39 AM, Marin Atanasov Nikolov wrote:

> Hello list,
> 
> I'm trying for some time already to setup Drupal 7 with Apache reverse proxy.
> 
> Here's the situation:
> 
> [ Internet ] <---> [ Firewall ] <---> [ Apache reverse proxy ]
> 
> The Apache reverse proxy is working fine with other virtual hosts I
> have in my private network, but I cannot made it work with Drupal 7.
> 
> The problem as I see is that Drupal 7 returns to the clients the
> absolute URLs to the clients, which includes the internal web server
> hostname, and thus make it impossible for clients to actually see the
> content - css, js, etc...
> 
> mod_proxy_html is of no use here, because it screws up the whole
> Drupal 7 content...
> 
> I installed Drupal 6 and noticed that it returns relative URLs, so
> this works with my setup, but not with Drupal 7.
> 
> Could you give me some clues/ideas/hints, what needs to be done in
> order to get Drupal 7 works properly behind Apache reverse proxy?
> 
> Perhaps if I could make Drupal 7 use relative URLs, instead of
> absolute ones, that would be the easier solution, but how to do this?
> 
> Thanks,
> Marin
> 
> -- 
> Marin Atanasov Nikolov
> 
> dnaeon AT gmail DOT com
> daemon AT unix-heaven DOT org
> http://www.unix-heaven.org/
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]



More information about the support mailing list