I have tried these options, basically what I have at the moment is 3 domains linked to one virtual site.
I have tried using HTTP_POST to determine which domain is being called then using the header to redirect to the appropriate directory, what I get is the primary domain each time.
ie, if I type www.domain2.com, I get directed to www.main-domain.com
Now albeit I have only 3 domains currently, I may have more, or inturn more sites to manage, so thought that if I got a PHP script to correctly interprete the chosen domain from a database and then redirected to an appropriate sub-directory with its own index.html.
By the way I have searched various forums, and haven't come up with an ideal solution, I guess in short I am looking for a redirection script.