无法启动apache2

时间:2017-10-05 04:46:51

标签: apache amazon-web-services reverse-proxy

Oct 04 14:13:29 ip-172-31-0-218 apache2[20813]:  * The apache2 configtest failed.
Oct 04 14:13:29 ip-172-31-0-218 apache2[20813]: Output of config test was:
Oct 04 14:13:29 ip-172-31-0-218 apache2[20813]: AH00526: Syntax error on line 13 of /etc/apache2/sites-enabled/000-default.conf:
Oct 04 14:13:29 ip-172-31-0-218 apache2[20813]: Invalid command 'ProxyPass', perhaps misspelled or defined by a module not included in the server configuration
Oct 04 14:13:29 ip-172-31-0-218 apache2[20813]: Action 'configtest' failed.
Oct 04 14:13:29 ip-172-31-0-218 apache2[20813]: The Apache error log may have more information.
Oct 04 14:13:29 ip-172-31-0-218 systemd[1]: apache2.service: Control process exited, code=exited status=1
Oct 04 14:13:29 ip-172-31-0-218 systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed

我刚刚在启用网站的文件中添加了Proxypass和proxyreversepass

1 个答案:

答案 0 :(得分:3)

尝试运行这些命令:

The name you entered is not valid.
Reasons for this can include:
-name does not begin with a letter or underscore
-name contains a space or other invalid characters
-name conflicts with an Excel built in name of name of the another object in workbook

然后再次尝试重新启动apache。