Gents,
Sending a followup to the previous question... (http://lists.drupal.org/pipermail/support/2011-April/017586.html)

If a main site is http://mainsite.com, and a subsection of it needs to be drupal... then

ProxyPass /drupalsite http://mydrupal.com
ProxyPassReverse /drupalsite http://mydrupal.com

Things break completely... since the URLs drupal seems to be generating are not aware of the new /drupalsite/ addition.

So, after doing some research online, and another article here: http://groups.drupal.org/node/5242, it seems 2 things need to be modified:

1.) $base_url needs to read $base_url = 'http://mainsite'
2.) .htaccess file needs to reflect the /drupalsite... ie RewriteBase /drupalsite

Now, should the $base_url reflect the mainsite.com or the mydrupal.com where drupal is installed?

A bit lost here guys, if someone could help, that would be awesome. At the end of the day, the drupal site should be masked behind the http://mysite.com/drupalsite URL structure.

Best,
V

Comments

clustermagnet’s picture

Anonymous’s picture

Given what you have described above, $base_url should be set to "http://mainsite.com/drupalsite". Make sure you add it without any trailing slashes. You should only need to change RewriteBase if Drupal is installed in a subdirectory of the server's DocumentRoot (or a subdirectory Virtual Host's DocumentRoot if you are using virtual hosting).

Chloe Chen’s picture

Here is my solution is anyone still needs help:

$conf['https'] = TRUE;
 
 $conf['reverse_proxy'] = TRUE;
 $conf['reverse_proxy_addresses'] = array('url where you site is actually installed');


if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
  $base_url = 'url you want people to access publicly ';
  $_SERVER['REQUEST_URI'] = str_replace('/sub folder if there is any/', '', $_SERVER['REQUEST_URI']);
 
  $cookie_domain = '.domain name for public access ';
};
 

Hope that helps