mirror of
https://github.com/nginx/nginx.git
synced 2024-11-29 01:09:53 +08:00
Fixed fastcgi_pass with UNIX socket and variables (ticket #855).
This was broken in a93345ee8f52 (1.9.8).
This commit is contained in:
parent
fac1f23e5d
commit
5e7535df72
@ -642,7 +642,9 @@ ngx_http_upstream_init_request(ngx_http_request_t *r)
|
|||||||
|
|
||||||
if (u->resolved->sockaddr) {
|
if (u->resolved->sockaddr) {
|
||||||
|
|
||||||
if (u->resolved->port == 0) {
|
if (u->resolved->port == 0
|
||||||
|
&& u->resolved->sockaddr->sa_family != AF_UNIX)
|
||||||
|
{
|
||||||
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
|
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
|
||||||
"no port in upstream \"%V\"", host);
|
"no port in upstream \"%V\"", host);
|
||||||
ngx_http_upstream_finalize_request(r, u,
|
ngx_http_upstream_finalize_request(r, u,
|
||||||
|
Loading…
Reference in New Issue
Block a user