How to get switch by hostname working

You have to set the correct options under admin/settings,
activating the hostname switch and inserting the hostnames
for each language that you want to use.

Then you have to register in your DNS server the correct entries
and then set up a multisite installation of you Drupal.
This involves an webserver configuration through virtual hosts,
but also a configuration under the sites directory of Drupal.

 
 

Drupal is a registered trademark of Dries Buytaert.