Multisite newbie question

I'm having trouble getting multisite working, probably because I don't fully understand how the system works.

Lets say my domain name is hello.com

I have a drupal site installed in public_html, which works fine.

(So I can go to hello.com and it works.)

Like all multisite users, what I'm trying to do is set up another site with the same code base:

I copied /public_html/sites/default/ to /public_html/sites/testsite1.com
I copied default.settings.php to setting.php in testsite1.com

Now what I don't understand is how to get to testsite1.com

1) I've tried setting up another domain name that points to /public_html/testsite1.com
This just says page not found. I guess because it has no index.php. Should I just copy another index.php into this folder? That doesn't see like the right thing to do.
2) I've also tried just going to http://hello.com/testsite1.com, and that also gives a page not found

Any help is appreciated

-rick

Groups:
Login to post comments

point to the same root location

btopro's picture
btopro - Sat, 2009-10-17 11:53

In a multisite, everything points back to the same drupal folder and then drupal figures out what site to load. So, testsite1.com should point to just the /public_html/ folder. What happens then is that drupal will look in the /public_html/sites/ folder and try to find a match. The naming convention (typically just the domain name) is how Drupal figures out which database file to load and allows you to leverage the multi-site technology to make your life easy :)

Hope this helps.

Plague Campaign is in full effect...this is gona get good
http://elearning.psu.edu/elearning/


Thanks

rgiuly - Sat, 2009-10-17 23:59

Thanks btopro, that solved it. I noticed that I had unknowingly done a redirect to "hello.com" at my hosting site rather than simply pointing to "hello.com" and that was causing drupal to not know the other site was to be accessed.

-rick