Fixed fastcgi_pass with UNIX socket and variables (ticket #855).

This was broken in a93345ee8f52 (1.9.8).
This commit is contained in:
Ruslan Ermilov 2015-12-09 16:26:59 +03:00
parent fac1f23e5d
commit 5e7535df72

View File

@ -642,7 +642,9 @@ ngx_http_upstream_init_request(ngx_http_request_t *r)
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,