I have an apache2 installation on www.main_domain.com (invalid underscore in domain name is intentional; this is an example), and the default page gives links for two secondary sites, also served by the same webserver since they point to the same address. The sites have lots of stuff in common, so I wouldn't want to do things using symbolic/hard links.
What I would like to do is:
- if the client requests
www.main_domain.com, I'd like to serve the current/var/www/index.htmlstart page. That page contains links tosecsite1.htmlandsecsite2.html(the start pages for the secondary sites). - if the client requests
www.secondary_site_1.com, I'd like to serve the/var/www/secsite1.htmlstart page. - likewise for
www.secondary_site_2.com: serve/var/www/secsite2.htmlas a first page.
Note that I want to change only the start page; otherwise, any page/image/file should be interchangeably accessible using the same path under each domain name.
Please let me know if I need to clarify more.