I'd like to produce regional versions of a php powered website, for example:
www.mysite-england.co.uk
www.mysite-wales.co.uk
www.mysite-scotland.co.uk
I'd like to setup one LAMP server to serve all the domains with a single php MVC using $_SERVER['HTTP_HOST']
(or similar) as the primary content modifier. Ie
if($_SERVER['HTTP_HOST'] == 'mysite-wales.co.uk'){
$region = 'wales';
$database = 'db_wales';
$styles= array('wales.css', 'wales_banners.css')
etc etc....
}
How do i go about setting up the server to direct all these domains to the same MVC router on a single server?