comparison src/http/ngx_http.c @ 52:0d75d65c642f NGINX_0_1_26

nginx 0.1.26 *) 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 <http://sysoev.ru>
date Tue, 22 Mar 2005 00:00:00 +0300
parents 72eb30262aac
children 3050baa54a26
comparison
equal deleted inserted replaced
51:43f383e47efc 52:0d75d65c642f
9 #include <ngx_event.h> 9 #include <ngx_event.h>
10 #include <ngx_http.h> 10 #include <ngx_http.h>
11 11
12 12
13 static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 13 static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
14 static int ngx_cmp_server_names(const void *one, const void *two); 14 static int ngx_libc_cdecl ngx_cmp_server_names(const void *one,
15 const void *two);
15 static ngx_int_t ngx_http_add_address(ngx_conf_t *cf, 16 static ngx_int_t ngx_http_add_address(ngx_conf_t *cf,
16 ngx_http_in_port_t *in_port, ngx_http_listen_t *lscf, 17 ngx_http_in_port_t *in_port, ngx_http_listen_t *lscf,
17 ngx_http_core_srv_conf_t *cscf); 18 ngx_http_core_srv_conf_t *cscf);
18 static ngx_int_t ngx_http_add_names(ngx_conf_t *cf, 19 static ngx_int_t ngx_http_add_names(ngx_conf_t *cf,
19 ngx_http_in_addr_t *in_addr, ngx_http_core_srv_conf_t *cscf); 20 ngx_http_in_addr_t *in_addr, ngx_http_core_srv_conf_t *cscf);
685 686
686 return NGX_CONF_OK; 687 return NGX_CONF_OK;
687 } 688 }
688 689
689 690
690 static int 691 static int ngx_libc_cdecl
691 ngx_cmp_server_names(const void *one, const void *two) 692 ngx_cmp_server_names(const void *one, const void *two)
692 { 693 {
693 ngx_http_server_name_t *first = (ngx_http_server_name_t *) one; 694 ngx_http_server_name_t *first = (ngx_http_server_name_t *) one;
694 ngx_http_server_name_t *second = (ngx_http_server_name_t *) two; 695 ngx_http_server_name_t *second = (ngx_http_server_name_t *) two;
695 696