I am hosting 2 domains on one centos droplet. And I want to alias subdomain of domain one to a subdomain of domain two. Like this.
I want to use subdomain.domain1.com as alias to subdomain.domain2.com, so that subdomain.domain1.com shows content of subdomain.domain2.com. How to do that.
I have added this in DNS section of domain1.com CNAME subdomain subdomain.domain2.com.
But it’s not working. subdomain.domain1.com points to error page. It should show website on subdomain.domain2.com
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!
The CNAME record should look like this (on domain1.com):

subdomain.domain1.com points to error page
Can you post the exact error you get?
Yes, that’s what I did. in DNS section of domain1.com added CNAME entry
subdomain subdomain.domain2.com.
But subdomain.domain1.com shows default centos/apache page. http://oi58.tinypic.com/547k35.jpg
I have also waited an hour, thought DSN might not have propagated so far. But it’s same result.
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.