在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