子域CNAME无法正常工作 [英] Subdomain CNAME not working

查看:72
本文介绍了子域CNAME无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有两个网站:



  • proddomain.com(proddomain.azurewebsites.net)
  • stagingdomain.azurewebsites。 net


我们需要使stagingdomain.azurewebsites.net成为proddomain.com的子域名,例如stagingdomain.proddomain。 COM。我们添加了一个名为"stagingdomain"的CNAME。到proddomain.com DNS,但是当转到url  stagingdomain.proddomain.com时,
只会给出404蓝屏。


当我进行DNS检查时,stagingdomain.proddomain.com和stagingdomain.azurewebsites.net都指向相同的IP。 


解决方案

< span style ="font-size:11.0pt; font-family:'Calibri',sans-serif; color:black">问候,


< span style ="font-size:11.0pt; font-family:'Calibri',sans-serif; color:black">感谢您在此处发帖。


404错误可能表示目标计算机未配置为域提供内容您指向它的名称。您需要修改
该机器的Web服务器配置以及新子域的虚拟主机配置。




问候,


Subhash.V







We have two sites:

  • proddomain.com (proddomain.azurewebsites.net)
  • stagingdomain.azurewebsites.net

We need to make stagingdomain.azurewebsites.net a subdomain of proddomain.com, for example stagingdomain.proddomain.com. We added a CNAME of "stagingdomain" to proddomain.com DNS, but when going to the url stagingdomain.proddomain.com, it just gives a 404 blue screen.

When i do DNS check, both stagingdomain.proddomain.com and stagingdomain.azurewebsites.net point to the same IP. 

解决方案

Greetings,

Thanks for posting here.

The 404 error probably indicates that the destination machine is not configured to serve content for the domain name that you are pointing at it. You would need to modify the webserver configuration of that machine and at a virtualhost configuration for your new subdomain.

Regards,

Subhash.V



这篇关于子域CNAME无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆