Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache2 apache错误:不知道这样的主机_Apache2 - Fatal编程技术网

Apache2 apache错误:不知道这样的主机

Apache2 apache错误:不知道这样的主机,apache2,Apache2,我是否要更改或删除虚拟主机80 我已经删除virtualhost*:80并添加 [Wed Dec 04 16:47:51.919206 2013] [core:error] [pid 15872:tid 348] (OS 11001)No such host is known. : AH00547: Could not resolve host name *: -- ignoring! AH00112: Warning: DocumentRoot [C:/Apache24/docs/dumm

我是否要更改或删除虚拟主机80


我已经删除virtualhost*:80并添加

[Wed Dec 04 16:47:51.919206 2013] [core:error] [pid 15872:tid 348] (OS 11001)No such host is known.  : AH00547: Could not resolve host name *: -- ignoring!
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
[Wed Dec 04 16:47:54.169335 2013] [core:error] [pid 15872:tid 348] (OS 11001)No such host is known.  : AH00547: Could not resolve host name *: -- ignoring!
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
[Wed Dec 04 16:47:54.193336 2013] [mpm_winnt:notice] [pid 15872:tid 348] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Wed Dec 04 16:47:54.193336 2013] [mpm_winnt:notice] [pid 15872:tid 348] AH00456: Server built: Feb 22 2013 22:08:37
[Wed Dec 04 16:47:54.193336 2013] [core:notice] [pid 15872:tid 348] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Wed Dec 04 16:47:54.194336 2013] [mpm_winnt:notice] [pid 15872:tid 348] AH00418: Parent: Created child process 15972
[Wed Dec 04 16:47:56.903491 2013] [core:error] [pid 15972:tid 240] (OS 11001)No such host is known.  : AH00547: Could not resolve host name *: -- ignoring!
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
[Wed Dec 04 16:47:59.154620 2013] [core:error] [pid 15972:tid 240] (OS 11001)No such host is known.  : AH00547: Could not resolve host name *: -- ignoring!
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
[Wed Dec 04 16:48:01.428750 2013] [core:error] [pid 15972:tid 240] (OS 11001)No such host is known.  : AH00547: Could not resolve host name *: -- ignoring!
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
[Wed Dec 04 16:48:03.678878 2013] [core:error] [pid 15972:tid 240] (OS 11001)No such host is known.  : AH00547: Could not resolve host name *: -- ignoring!
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
[Wed Dec 04 16:48:03.699880 2013] [mpm_winnt:notice] [pid 15972:tid 240] AH00354: Child: Starting 150 worker threads.

将其添加到文件的开头:

[Thu Dec 05 10:00:43.523014 2013] [mpm_winnt:notice] [pid 5404:tid 392] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Thu Dec 05 10:00:43.523014 2013] [mpm_winnt:notice] [pid 5404:tid 392] AH00456: Server built: Feb 22 2013 22:08:37
[Thu Dec 05 10:00:43.523014 2013] [core:notice] [pid 5404:tid 392] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Thu Dec 05 10:00:43.525014 2013] [mpm_winnt:notice] [pid 5404:tid 392] AH00418: Parent: Created child process 4552
AH00548: NameVirtualHost has no effect and will be removed in the next release C:/wamp/bin/apache/Apache2.4.4/conf/extra/httpd-vhosts.conf:1
[Thu Dec 05 10:00:44.218054 2013] [mpm_winnt:notice] [pid 4552:tid 284] AH00354: Child: Starting 150 worker threads.
并删除这些行:

NameVirtualHost *:80

服务器管理员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”通用
服务器管理员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”通用

这些都是apache提供的示例,应该删除或注释它们。

我是否也要注释serverroot?ServerRoot“C:/wamp/bin/apache/apache2.4.4”现在可以明显地删除
NameVirtualHost*:80
。其余的错误只是通知,现在一切都必须正常。“没有已知的此类主机无法解析主机名”看,您必须首先解析您的服务器名,因为物理服务器名可能与您在virtualhost中定义的服务器名不相同
[Thu Dec 05 10:00:43.523014 2013] [mpm_winnt:notice] [pid 5404:tid 392] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Thu Dec 05 10:00:43.523014 2013] [mpm_winnt:notice] [pid 5404:tid 392] AH00456: Server built: Feb 22 2013 22:08:37
[Thu Dec 05 10:00:43.523014 2013] [core:notice] [pid 5404:tid 392] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Thu Dec 05 10:00:43.525014 2013] [mpm_winnt:notice] [pid 5404:tid 392] AH00418: Parent: Created child process 4552
AH00548: NameVirtualHost has no effect and will be removed in the next release C:/wamp/bin/apache/Apache2.4.4/conf/extra/httpd-vhosts.conf:1
[Thu Dec 05 10:00:44.218054 2013] [mpm_winnt:notice] [pid 4552:tid 284] AH00354: Child: Starting 150 worker threads.
NameVirtualHost *:80
<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>