服务器未找到错误

时间:2013-04-20 22:45:43

标签: asp.net web

我是网络编程新手,想在我的网站上设置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时,我收到服务器未找到错误。

我哪里错了?我错过了一个文件吗?

1 个答案:

答案 0 :(得分:0)

看起来你正在学习编写代码。如果是这种情况,请使用您的hosts文件创建自定义域名:https://en.wikipedia.org/wiki/Hosts_(file)

可能在%SystemRoot%\ system32 \ drivers \ etc \ hosts

编辑主文件非常简单。

如果您正在学习管理计算机(通过设置iis,配置IP地址,域名等),那么您希望继续学习DNS。 SeverFault可能有更多建议,我不确定。