User login |
Proof of ConceptSubmitted by Karen on Sun, 2005-08-14 10:27.
After a long wait and intermittent efforts, I now have multiple websites running on a single drupal-4.6.2 install. Now that I have done it, it was quite simple. In the first test, I set a second domain to alias the first, in toher words the exact same website was reached by both the original domain name and also the new one. Then I created a folder in my /sites folder called newdomain.tld and added a settings.php file that calls a different database. It can be viewed for now at cafeamerican.info. What will I ever do after those free .info domains I use for testing finally expire? The second test was slightly more difficult. The example in the settings.php file is as follows: * For example, for a fictitious site installed at * http://www.drupal.org/mysite/test/, the 'settings.php' * is searched in the following directories: * * 1. sites/www.drupal.org.mysite.test * 2. sites/drupal.org.mysite.test * 3. sites/org.mysite.test * * 4. sites/www.drupal.org.mysite * 5. sites/drupal.org.mysite * 6. sites/org.mysite * * 7. sites/www.drupal.org * 8. sites/drupal.org * 9. sites/org * * 10. sites/default but when I tried doing it this way I only got a File Not Found. Having nothing to lose at this point, tried it with a subfolder, creating a folder in my sites folder more like this:
sites/www.mysite.test.drupal.org
This was the thing to do, and you can view the results at: yoursite.cafeamerican.com Time to celebrate.
( categories: )
|
Photo FunHere is a random photo from Flickr: |