The idea is:
Make a trigger in the config file that include a file depending of the current $_SERVER['host'] variable.
I created a 'sites' folder and make a folder for each site called 'sitename'. Inside the folder i just put the config file related with the site. Cause i'm new in moodle i 'd need that someone help me to know if there are more folder or config files that have to be different in each site(for example for xoops there is a folder called 'cache' and another called 'templates_c' that obviously have to be different for each site).
Here i pass you an example with two site in one dirroot. Do the following:
Copy the 'sites' folder i give you in moodle dirroot. Edit the /sites/sites.php file and put:
$moodle_site["sitename"]="sitename";
Install one site in the common way. Then make a folder in /sites folder with the name of the site
For example if you make a site called site1.com make the folder
/sites/sites1.com/
Copy in the folder the config file i give you.
Then replace the /config.php file with the one i give you. Prove the site, it should work.
The to install one more site. Make a backup of the config.php file and delete it. Install other site as usual. Modify the /sites/sites.php file and add the new site. Create a folder to this site and do the same as the other site.
Finally replace the /config.php file with the one that you backup. It should work.
Please tell me if you can prove it and what do you think.
Then the my idea is to do something to share tables between different sites. In fact i've done something but is too dirty. I'll try to meke it better.
Sorry for my english.
Saganxis