Multisite install in userdir

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by clintthayer on February 24, 2010 at 8:15pm

Hello All,

I recently installed Drupal in my userdir (~username) on an Apache server here at work. It's behaving how I'd expect, but what I want to do is configure it to handle multiple sites. This, however, has proven to be quite difficult.

So, let me give you all the layout of my file system... Within my userdir (/home/user/public_html) directory I have:
/drupal <= Full Drupal install
/drupal/sites/www.example.com.project1 <= A site with a fully configured settings.php file.
/project1 <= Symlinked to drupal

So, I'd like to be able to, from the web, make a request like http://www.example.com/~user/project1 and be presented with contents from the www.example.com.project1 site in my /drupal/sites directory.

But, what I get back is the default Drupal install page; as though I made a request to www.example.com/~user/drupal. I can confirm the multi-site feature works correctly by creating the symlink "/var/www/project1" and pointing it to /home/user/public_html/drupal. This results in my web request (http://www.example.com/project1) rendering the desired result. I think something with the "~user" portion of URL is gumming up the works. Does anyone have any ideas?

Clint

Comments

This may be of interest to

Posted by Garrett Albright on March 12, 2010 at 4:25am

This may be of interest to you - it's a crazy hack you add to your settings.php file which will let you pull something like this off.

Thanks!

Posted by clintthayer on March 12, 2010 at 4:32am

Thanks Man!

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /