Drupal : how to host multiple drupal sites using only one url on linux
We have two sites a dutch site and a french site and we want to host it under one url.
Setup your folders in de sites folders. Create a directory for the french site and create a directory for the dutch site. Both will have their own settings file.
In the root of your drupal installation create two symlinks. The two symlinks will point back to the root of your site.
When surfing to yoursite.ext/nl drupal will now look for a folder named yoursite.ext.nl in your sites folder, it will find the symlink and will be redirected to /var/www/yoursite/sites/yoursite-dutch and find the correct settings file.
Finaly you ll want people to land on a default site or perhaps you ll want to create a page where people make their choice. This is where the default settings file (sites/default/settings.php) will be used.
On the first line put this:
The blog contains tips for using the Drupal content management system/framework.
Dominique De Cooman is a drupal developer consultant working in Antwerp and Living in Gent. Feel free to contact me to hire me for your projects