Report this

What is the reason for this report?

How to redirect with Virtual Hosts

Posted on August 6, 2015

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.