Mercurial > hg > nginx-quic
diff src/http/modules/proxy/ngx_http_proxy_handler.c @ 503:b1648294f693 release-0.1.26
nginx-0.1.26-RELEASE import
*) Change: the invalid client header lines are now ignored and logged
at the info level.
*) Change: the server name is also logged in error log.
*) Feature: the ngx_http_auth_basic_module module and the auth_basic
and auth_basic_user_file directives.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 22 Mar 2005 16:02:46 +0000 |
parents | d4ea69372b94 |
children | ee66921ecd47 |
line wrap: on
line diff
--- a/src/http/modules/proxy/ngx_http_proxy_handler.c +++ b/src/http/modules/proxy/ngx_http_proxy_handler.c @@ -362,7 +362,9 @@ static ngx_str_t cache_reasons[] = { }; +#if (NGX_PCRE) static ngx_str_t ngx_http_proxy_uri = ngx_string("/"); +#endif static ngx_int_t ngx_http_proxy_handler(ngx_http_request_t *r) @@ -812,9 +814,11 @@ u_char *ngx_http_proxy_log_error(ngx_log peer = &ctx->proxy->upstream->peer; p = ngx_snprintf(buf, len, - " while %s, client: %V, URL: %V, upstream: http://%V%s%V", + " while %s, client: %V, host: %V, URL: \"%V\"," + " upstream: http://%V%s%V", ctx->proxy->action, &r->connection->addr_text, + &r->server_name, &r->unparsed_uri, &peer->peers->peer[peer->cur_peer].name, ctx->proxy->lcf->upstream->uri_separator,