Hi;
I have a requirement where I need to add several (up to 100) parked domains to a single main domain, none of these parked domains receive emails, the web pages are dynamic and each parked domain will be served from the same document root, only the page content will change depending on the detection of browser’s domain / host name.
This basically means that I have just one site to maintain with the control panel, there’s only one or 2 dns entries (www.domain.com, domain.com) per domain and there is no requirement at all to manage or maintain any settings for them individually through the control panel.
This has been working well on other control panels for a few years, but having migrated to virtualmin, and can’t seem to find an easy way of doing this.
To add an alias for each one, means that instead of having one master virtual domain in my drop down menu for the virtual servers, I would have for example 101 names, 100 of them parked and the 1 main domain, but none of the parked domains will ever be accessed and it’s really pointless having them in the drop down ?!
So other than adding 100 alias’s as virtual servers, since none of them require any form of management or configuration via virtualmin, is there a better way of doing this ??
Can I somehow list all of the TLD domains in BIND (mydomain.com), and use a wildcard server using apache, with maybe mod_rewrites to take care of the sub domains such as (www.mydomaon.com > mydomain.com) etc.
Any help / suggestions gratefully received as I have been tearning my hair out for about a week now trying to come up with a solution !
Thanks
P
After lots of googling and some hacking, have managed to achieve what I wanted.