我是网络编程的新手,并且想在我的网站上设置Hello World。 我的web.config作为服务器未找到错误
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
</system.web>
</configuration>
和index.html作为
<html>
<head>
<title>Sample "Hello, World" Application</title>
</head>
<body bgcolor=white>
<table border="0" cellpadding="10">
<tr>
<td>
<h1>Sample "Hello, World" Application</h1>
</td>
</tr>
</table>
<p>This is the home page for World. </p>
</body>
</html>
但是当我去www.mywebsite.com我得到了一个服务器没有发现错误。
我哪里错了?我错过了一个文件吗?
您是否设置了DNS条目以将域名指向服务器?服务器是否知道如何响应该主机名? (即将IIS配置为接受主机头或接受该IP地址上的任何内容)。 – 2013-04-20 22:54:39
DNS被禁用。现在启用它。我也发现了一个正在工作的即时别名。我只需要等待DNS推广?我需要仔细检查我的DNS记录吗? – 2013-04-21 00:00:33
正如前面所说的DNS没有设置。 DNS服务器需要更新才能使用IP(如果拥有专用的话)。 – Xaqron 2013-04-21 01:54:50