dlee360
By:
dlee360

How to redirect with Virtual Hosts

August 6, 2015 697 views
Apache DNS Ubuntu

Hi,
I've tried searching the forum and couldn't get the exact answer. Please help!!
So I have 3 virtual hosts (SiteA, SiteB, and SiteC). I also have a domain D that I would like to be pointed to A. How do I do that? The A record for the D domain points to the IP of the droplet. For some reason, it's going to SiteB instead of SiteA.

Thanks!!!
David

1 Answer

Just setup a virtual host for domain D like you did for domain A (same Document Root).

  • I'm an idiot. Thanks!! I actually did do that and when it didn't work, I posted the question. I forgot to change domain D's ServerName and ServerAlias in the host file.

    Thanks!!!
    David

Have another answer? Share your knowledge.