wsgi:alert没有这样的文件或目录:mod_wsgi(pid = XXXX):无法绑定unix域套接字'/usr/local/opt/httpd/logs/wsgi.xxxxx.11.1.sock'

问题描述 投票:0回答:1

在Mac OS(Mojave)中将Apache-httpd从2.4.33升级到2.4.39后,我遇到了这个问题:

[wsgi:alert] No such file or directory: mod_wsgi (pid=XXXX): Couldn't bind unix domain socket '/usr/local/opt/httpd/logs/wsgi.xxxxx.11.1.sock'

请告诉我在httpd.conf中需要添加哪些配置来缓解此问题。由于503错误无法访问服务器。

django macos apache mod-wsgi httpd.conf
1个回答
0
投票

在httpd.conf中添加以下内容后:

WSGISocketPrefix /var/run/wsgi

服务器现在正在顺利运行。 参考:https://modwsgi.readthedocs.io/en/develop/user-guides/configuration-issues.html

© www.soinside.com 2019 - 2024. All rights reserved.