I have an application which delivers different content based on the domain.
“parent.com” hosts the application and I set up an alias “child.com” in virtualmin. Everything works great, they act as two separate websites even though it is just one single php application in parent.com’s web folder. I also have SSL with both domains on the certificate, so everything is great.
Is this something wrong with .conf file in apache? DNS? Is there some kind of virtualmin create-new-vhost default setting that is incorrect? I need to fix this before I add more domain aliases, I intend on using many of them.
I tried using a subserver instead, (I would prefer to use subservers because I’d like each site to have it’s own SSL certificate). But I couldn’t figure out how to redirect
/home/parent.com/domains/third.com/public_html (default subserver webroot for third.com)
– to –
/home/parent.com/public_html (intended subserver webroot for third.com)
Any help fixing the broken alias, and/or advice on how to set subserver’s default webroot to parent’s webroot would be appreciated, thank you.