# HG changeset patch # User Ruslan Ermilov # Date 1449667619 -10800 # Node ID 705c356ce664e49c352c751b2a7b9f480b48bfaa # Parent 00079605a9b80ee706543955f618f8847d4b2a04 Fixed fastcgi_pass with UNIX socket and variables (ticket #855). This was broken in a93345ee8f52 (1.9.8). diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -642,7 +642,9 @@ ngx_http_upstream_init_request(ngx_http_ 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, "no port in upstream \"%V\"", host); ngx_http_upstream_finalize_request(r, u,