如何修復 httpd 錯誤代碼 AH00526?

如何修復 httpd 錯誤代碼 AH00526?

嘿,我是 Linux 新手,我剛剛在我的電腦上安裝並運行了 Centos 7.2。我按照「完美伺服器」的說明進行操作,並一路安裝 apache,現在我陷入了配置 ispconfig 的困境,因為當我運行命令時,我的機器返回錯誤systemctl restart httpd.service.它指出 httpd 服務的作業失敗,因為控制進程已退出錯誤代碼為AH00526。

Oct 25 05:37:49 server01.tcforwarding.com httpd[14691]: [Tue Oct 25 05:37:49.091640 2016] [alias:warn] [pid 14691] AH00671: The ScriptAlias directive in /etc/httpd/conf.d/mailman.conf at line 6 will probably never match because it overlaps an earlier ScriptAlias.
Oct 25 05:37:49 server01.tcforwarding.com httpd[14691]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd.conf:356
Oct 25 05:37:49 server01.tcforwarding.com httpd[14691]: AH00526: Syntax error on line 6 of /etc/httpd/conf/sites-enabled/000-ispconfig.vhost:
Oct 25 05:37:49 server01.tcforwarding.com httpd[14691]: Port must be specified
Oct 25 05:37:49 server01.tcforwarding.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Oct 25 05:37:49 server01.tcforwarding.com kill[14699]: kill: cannot find process "" 
Oct 25 05:37:49 server01.tcforwarding.com systemd[1]: httpd.service: control process exited, code=exited status=1 
Oct 25 05:37:49 server01.tcforwarding.com systemd[1]: Failed to start The Apache HTTP Server. 
Oct 25 05:37:49 server01.tcforwarding.com systemd[1]: Unit httpd.service entered failed state. 
Oct 25 05:37:49 server01.tcforwarding.com systemd[1]: httpd.service failed.

這是 vhost 檔案本身的一部分。

_
__Listen root
NameVirtualHost *:root
_
VirtualHost default:root *:80
_ServerAdmin [email protected]
_
__Directory /var/www/ispconfig/
____FilesMatch ".ph(p3?|tml)$"

需要幫忙請叫我!

答案1

root不是有效的 TCP 連接埠號碼。你可能想要這樣的東西:

Listen 80
NameVirtualHost *:80

相關內容