mirror of
https://github.com/nginx/nginx.git
synced 2025-01-15 19:12:13 -06:00
test port in fastcgi_pass variable
This commit is contained in:
parent
1e2d6aa0e8
commit
0c54fef3e0
@ -500,6 +500,12 @@ ngx_http_fastcgi_eval(ngx_http_request_t *r, ngx_http_fastcgi_loc_conf_t *flcf)
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
if (u.no_port) {
|
||||
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
|
||||
"no port in upstream \"%V\"", &u.url);
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
r->upstream->resolved = ngx_pcalloc(r->pool,
|
||||
sizeof(ngx_http_upstream_resolved_t));
|
||||
if (r->upstream->resolved == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user