DNS查找时,在加入myproject文件夹Wamp时失败



->我在www目录中有一个名为"学校管理系统"的文件夹。 ->当我从Chrome启动Local -Host,然后在"您的项目"下浏览到文件夹时,我会收到错误:

此网页不可用

ERR_NAME_NOT_RESOLVED
Hide details
The server at school%20management%20system can't be found, because the DNS `lookup failed. DNS is the network service that translates a website's name to` its Internet address. This error is most often caused by having no connection to the Internet or a misconfigured network. It can also be caused by an unresponsive DNS server or a firewall preventing Google Chrome from accessing the network.
Did you mean [schoolmanagementsystem.net]?
Did you mean [schoolmanagementsystem.biz]?
Did you mean [schoolmanagementsystem.org]?

->我的主机文件当前如下:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 localhost

->我还在Apache_error_log文件中的每一次尝试中都看到以下有趣的消息,我似乎对:

[Tue May 05 07:52:22.891408 2015] [authz_core:error] [pid 6176:tid 944] [client ::1:49838] AH01630: client denied by server configuration: C:/Apache24, referer: [localhost]

-> netstat -aon |Findstr:80显示以下内容:

TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 3688
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 6368
TCP 192.168.1.5:49604 104.75.84.24:80 CLOSE_WAIT 3864
TCP 192.168.1.5:49605 104.75.84.24:80 CLOSE_WAIT 3864
TCP 192.168.1.5:49606 104.75.84.24:80 CLOSE_WAIT 3864
TCP 192.168.1.5:49607 104.75.84.19:80 CLOSE_WAIT 3864
TCP 192.168.1.5:49608 104.75.84.24:80 CLOSE_WAIT 3864
TCP 192.168.1.5:49609 104.75.84.19:80 CLOSE_WAIT 3864
TCP 192.168.1.5:49610 104.75.84.24:80 CLOSE_WAIT 3864
TCP 192.168.1.5:50086 74.125.200.95:80 TIME_WAIT 0
TCP 192.168.1.5:50095 222.165.163.37:80 TIME_WAIT 0
TCP 192.168.1.5:50097 222.165.163.174:80 TIME_WAIT 0
TCP 192.168.1.5:50099 68.232.35.121:80 TIME_WAIT 0
TCP 192.168.1.5:50100 68.232.35.121:80 TIME_WAIT 0
TCP [::]:80 [::]:0 LISTENING 6368
TCP [::]:80 [::]:0 LISTENING 3688

请在这里帮助我...:)

看起来您已经添加了一些虚拟主机,并在httpd.conf文件中添加了此行

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

conf/extra/httpd-vhosts.conf文件包含您需要删除的一些示例代码,此示例代码使用C:/Apache24的Apache的默认路径,该路径解释了有趣的消息

因此,从conf/extra/httpd-vhosts.conf中删除这两个示例定义,该错误应消失。

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "c:/Apache24/docs/dummy-host.example.com"
    ServerName dummy-host.example.com
    ServerAlias www.dummy-host.example.com
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "c:/Apache24/docs/dummy-host2.example.com"
    ServerName dummy-host2.example.com
    ErrorLog "logs/dummy-host2.example.com-error.log"
    CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>

还要检查此帖子以获取有关如何使虚拟主机正常工作的详细信息。

最新更新