为什么我的网页无法在其他计算机上显示?

时间:2015-09-07 20:09:55

标签: apache web dns xampp

我正在尝试将网站托管到我从google域名购买的域名(seanpatnode.com),我已经尝试了几个教程,但我一直得到相同的结果。任何帮助将不胜感激!我将尽可能多地提供信息。我使用XAMPP 2.4作为Web服务器。 以下是我的httpd.conf文件中的相关行:(如果我遗漏了任何重要内容,请通知我。)

1) read the input file, a line at a time, perhaps with fgets() or getline()
2) generate a linked list where each node in the list contains one data group.
3) always insert at the 'head' of the linked list 
4) To output, start at the 'head' and walk through the list, outputting the contents of each node.
5) you could use strstr() to find each occurrence of the end of a data group, then use memcpy to place a copy of the data into the new node to be inserted into the front of the linked list.

这些是来自我的httpd-vhosts.conf的相关行:

ServerRoot "C:/xampp/apache"
Listen 80
ServerName localhost:80
<Directory />
AllowOverride none
Require all denied
</Directory>
# DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>

这些是来自我的主机文件的相关行:C:\ WINDOWS \ System32 \ drivers \ etc

<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/PhpProject"
ServerName seanpatnode.com
ServerAlias www.seanpatnode.com
<Directory "c:/xampp/htdocs/PhpProject">
AllowOverride All
Require all Granted
</Directory>
</VirtualHost>

当我从自己的计算机上打开www.seanpatnode.com时,我可以看到该网页。 但是,当我尝试从另一台计算机打开它时,它说:

  

此网页不可用   www.seanpatnode.com上的服务器无法访问   找到,因为DNS查找失败。 DNS是网络服务   将网站名称翻译为其Internet地址。这个错误   最常见的原因是没有连接到互联网或   配置错误的网络。它也可能是由无响应的DNS引起的   服务器或防火墙阻止谷歌浏览器访问   网络

同样,seanpatnode.com是我从Google Domains购买的域名。任何帮助将不胜感激。谢谢。

1 个答案:

答案 0 :(得分:0)

购买域名是不够的,您还必须将正确的数据放入其中。特别是在您的情况下,域名www.seanpatnode.com本身并不存在,您必须创建它并使其指向您的Web服务器的IP地址。