Running Craft from two subdirectories
There's a whole slew of PHP constants you can define in each public index.php file to separate out the templates, config settings, etc. for each of the sites.

It's a very similar method we use for https://craftcms.com, too (just based on subdomains instead of subfolders.