I'm working on setting up a web hosting system and was wondering what the best way to configure the default configuration is to look in a folder if there is no vhost for it.
Here's how I would like it setup:
site1.com vhost setup and serves from files /home/site1.com/public_html/ (already working)
site2.com no vhost serves the files from /home/hosted/site2.com/public_html/
site3.com no vhost serves the files from /home/default/public_html because /home/default/site3.com/public_html does not exist. (already working)
1.1.1.1 serves files from /home/default/public_html (already working)
The question I have is how to make site2.com work. Should it be a .htaccess in home/default/public_html or something in the default config file?