【发布时间】:2014-01-09 12:03:38
【问题描述】:
我有一个为 unix 域套接字运行的 uwsgi 服务器
[uwsgi]
...
socket = /var/run/someuwsgi.sock
socket = localhost:9987
...
mod_proxy_uwsgi 已安装
在 apache config 中有那一行: ProxyPass /some uwsgi://localhost:9987
它正在工作。
问题:通过 unix 域套接字的 apache 配置行应该是什么 /var/run/someuwsgi.sock ? 我试过了
ProxyPass /some uwsgi:///var/run/someuwsgi.sock
得到了
Bad Request
Your browser sent a request that this server could not understand.
也试过了
ProxyPass /some uwsgi://unix:///var/run/someuwsgi.sock
得到了
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /some/.
Reason: DNS lookup failure for: unix:
谢谢!
【问题讨论】:
标签: apache config uwsgi unix-socket