1 回答
TA贡献2065条经验 获得超13个赞
首先,添加ErrorLog /proc/self/fd/2到您的http.conf以启用错误日志。
然后,我看到了你的情况的错误日志:
shubuntu1@shubuntu1:~/aa$ docker run -idt -v ${PWD}/httpd.conf:/usr/local/apache2/conf/httpd.conf -p 9000:80 httpd:2.4
fd0d0b45bd8e25e5ce8219d6b96e5b446307d7a76bf7e3eecb47e23d93b04368
shubuntu1@shubuntu1:~/aa$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fd0d0b45bd8e httpd:2.4 "httpd-foreground" 3 seconds ago Exited (1) 1 second ago agitated_edison
shubuntu1@shubuntu1:~/aa$ docker logs agitated_edison
[Wed Jun 19 08:45:20.774433 2019] [core:emerg] [pid 1:tid 139720185319488] (22)Invalid argument: AH00024: Couldn't set permissions on the proxy mutex; check User and Group directives
[Wed Jun 19 08:45:20.774495 2019] [proxy:crit] [pid 1:tid 139720185319488] (22)Invalid argument: AH02478: failed to create proxy mutex
AH00016: Configuration Failed
从错误日志:创建代理互斥体时似乎失败proxy_module。所以,我在旁边添加httpd.conf,然后一切正常:
<IfModule unixd_module>
User daemon
Group daemon
</IfModule>
- 1 回答
- 0 关注
- 252 浏览
添加回答
举报