Apache-2.2

不支持 NameVirtualHost 地址,結果未定義

  • April 4, 2016

阿帕奇詳細資訊

伺服器版本:Apache/2.2.15 (Unix) 伺服器搭建:2015 年 8 月 28 日 22:18:57

varnishd (varnish-3.0.7 修訂版 f544cd8) 版權所有 (c) 2006 Verdens Gang AS 版權所有 (c) 2006-2014 Varnish Software AS

CentOS 6.7 版(最終版)

Linux核心

2.6.32-042stab113.11 #1 SMP 12 月 18 日星期五 17:32:04 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux

注意: 當嘗試開始收到此錯誤並請建議如何解決這些錯誤並啟動 apache 伺服器。我也安裝和配置清漆記憶體代理伺服器。

Failed to start apache :

Starting httpd: [Sat Mar 12 16:36:02 2016] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sat Mar 12 16:36:02 2016] [error] VirtualHost _default_:8443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sat Mar 12 16:36:02 2016] [warn] NameVirtualHost 23.227.161.204:443 has no VirtualHosts
[Sat Mar 12 16:36:02 2016] [warn] NameVirtualHost 23.227.161.204:81 has no VirtualHosts
[Sat Mar 12 16:36:02 2016] [warn] NameVirtualHost 23.227.161.204:444 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address 104.251.216.213:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]

瀏覽器請求出現以下錯誤。

Error 503 Service Unavailable

Service Unavailable
Guru Meditation:

XID: 54055607

Varnish cache server

一旦 Apache 正確啟動,Varnish 錯誤就會消失。目前 Varnish 正在嘗試從 Apache 獲取內容,但由於 Apache 已關閉而無法獲取。

您應該能夠使用這個問題的公認答案來解決 Apache 錯誤。

引用自:https://serverfault.com/questions/763333