By mealexxxx
I have some virtual hosts / domains On 1 Droplet and need to bind several domans to 1 of vhosts
Let it be site1-bla-bla-1.com site1-bla-bla-2.com site1-bla-bla-3.com
I see 2 options:
Add to /DNS menu domain site1-bla-bla-1.com with CNAME records: CNAME site1-bla-bla-2.com. site1-bla-bla-1.com CNAME site1-bla-bla-3.com. site1-bla-bla-1.com
and also add to /DNS domains site1-bla-bla-2.com and site1-bla-bla-3.com just with A records
and set digitalocean nameservers to domain names
Add to /DNS domains site1-bla-bla-1.com , site1-bla-bla-2.com, site1-bla-bla-3.com with A records
In httpd.conf:
<VirtualHost *.80> ServerName site1-bla-bla-1.com ServerAlias site1-bla-bla-2.com ServerAlias site1-bla-bla-3.com </VirtualHost>
Is it correct? What would be better?
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!
Hello, <br> <br>Option 1 will only work if your website is being served without name based virtual hosting (browse your site using its IP address; if you can see your site, it is name based virtual hosting and therefore this will work). <br> <br>Option 2 will work fine in case you are using name based virtual hosting. <br> <br>However, please note that you can not set CNAME on root domain (example.com CNAME to otherhost.blabla.com), but only for its hostnames.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.