Hmm, you can make a gateway or index PHP which will find the URL trying to be accessed and redirect to a part of the site.
To do this, get the headers:
$headers = getallheaders();
Then find out the domain as entered by the user:
$domain = $headers["Host"];
Now run a conditional or switch to load the content:
switch($domain) {
case "domain1.com":
Show_SITE1();
break;
case "domain2.com":
Show_SITE2();
break;
}
Of course you can set a cookie or global var indicating what domain it is in so that all the functions of the PHP can check this variable to see which content to load.
-sridhar
-sridhar