diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-12-10 16:25:14 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-12-10 16:25:14 +0000 |
commit | 0c54fef3e044a41825f7eefbe8460918a63ac172 (patch) | |
tree | 96bc0b1926954c97b50bcac5b09f738282226e1a /src | |
parent | 1e2d6aa0e88891bf92d860f108a93078e3203e53 (diff) | |
download | nginx-0c54fef3e044a41825f7eefbe8460918a63ac172.tar.gz nginx-0c54fef3e044a41825f7eefbe8460918a63ac172.zip |
test port in fastcgi_pass variable
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 301449fee..957927741 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -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) { |