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



在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 错误。

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

WSGISocketPrefix /var/run/wsgi

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

相关内容

最新更新