如何修复 httpd 错误代码 AH00526?

如何修复 httpd 错误代码 AH00526?

嘿,我是 Linux 新手,我刚刚在我的电脑上安装并运行了 Centos 7.2。我按照“The Perfect Server”的说明进行操作,一路安装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

相关内容