【问题标题】: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'wsgi:alert 没有这样的文件或目录:mod_wsgi (pid=XXXX): 无法绑定 unix 域套接字'/usr/local/opt/httpd/logs/wsgi.xxxxx.11.1.sock'
【发布时间】:2019-09-17 16:59:06
【问题描述】:

在 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】:

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

    WSGISocketPrefix /var/run/wsgi
    

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-25
      • 2017-11-14
      相关资源
      最近更新 更多