开发者

Question on CNAME for different domains [closed]

开发者 https://www.devze.com 2023-04-05 16:03 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

The community reviewed whether to reopen this question 10 months ago and left it closed:

Original close reason(s) were not resolved

Improve this question

Is it posssible for m开发者_开发技巧e to use CNAME for different domains like

www.domain2.com CNAME www.domain1.com

Both are server from same server but different Virtual host (root paths are different)


Yes, it is valid for a CNAME to point to an entirely different domain. This is often used in the context of using CNAME records to handle the TLD variants on your domain such as:

mydomain.com CNAME mydomain.net.


It is possible to do this at the DNS level, but that effectively means that both domains point to the same resource. If you have 2 different applications serving different content, than this is not the case.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号