首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法启动apache2

无法启动apache2
EN

Stack Overflow用户
提问于 2017-10-05 04:46:51
回答 1查看 3.6K关注 0票数 1
代码语言:javascript
复制
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和Proxypass。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-10-05 06:10:31

尝试运行以下命令:

代码语言:javascript
复制
a2enmod proxy
a2enmod proxy_http
a2enmod proxy_ajp
a2enmod proxy_balancer
a2enmod proxy_connect
a2enmod proxy_html

然后再尝试重新启动apache。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46578020

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档