comparison src/http/ngx_http_core_module.h @ 72:b31656313b59 NGINX_0_1_36

nginx 0.1.36 *) Change: if the request header has duplicate the "Host", "Connection", "Content-Length", or "Authorization" lines, then nginx now returns the 400 error. *) Change: the "post_accept_timeout" directive was canceled. *) Feature: the "default", "af=", "bl=", "deferred", and "bind" parameters of the "listen" directive. *) Feature: the FreeBSD accept filters support. *) Feature: the Linux TCP_DEFER_ACCEPT support. *) Bugfix: the ngx_http_autoindex_module did not support the file names in UTF-8. *) Bugfix: the new log file can be rotated by the -USR1 signal only if the reconfiguration by the -HUP signal was made twice.
author Igor Sysoev <http://sysoev.ru>
date Wed, 15 Jun 2005 00:00:00 +0400
parents 8ad297c88dcb
children da9a3b14312d
comparison
equal deleted inserted replaced
71:66f1f40f29d6 72:b31656313b59
12 #include <ngx_array.h> 12 #include <ngx_array.h>
13 #include <ngx_http.h> 13 #include <ngx_http.h>
14 14
15 15
16 typedef struct { 16 typedef struct {
17 unsigned default_server:1;
18 unsigned bind:1;
19
20 int backlog;
21
22 #if (NGX_HAVE_DEFERRED_ACCEPT && defined SO_ACCEPTFILTER)
23 char *accept_filter;
24 #endif
25 #if (NGX_HAVE_DEFERRED_ACCEPT && defined TCP_DEFER_ACCEPT)
26 ngx_uint_t deferred_accept;
27 #endif
28
29 } ngx_http_listen_conf_t;
30
31
32 typedef struct {
17 in_addr_t addr; 33 in_addr_t addr;
18 in_port_t port; 34 in_port_t port;
19 int family; 35 int family;
36
20 ngx_str_t file_name; 37 ngx_str_t file_name;
21 ngx_int_t line; 38 ngx_int_t line;
22 39
23 ngx_uint_t default_server; /* unsigned default_server:1; */ 40 ngx_http_listen_conf_t conf;
24 } ngx_http_listen_t; 41 } ngx_http_listen_t;
25 42
26 43
27 typedef enum { 44 typedef enum {
28 NGX_HTTP_FIND_CONFIG_PHASE = 0, 45 NGX_HTTP_FIND_CONFIG_PHASE = 0,
81 size_t request_pool_size; 98 size_t request_pool_size;
82 size_t client_header_buffer_size; 99 size_t client_header_buffer_size;
83 100
84 ngx_bufs_t large_client_header_buffers; 101 ngx_bufs_t large_client_header_buffers;
85 102
86 ngx_msec_t post_accept_timeout;
87 ngx_msec_t client_header_timeout; 103 ngx_msec_t client_header_timeout;
88 104
89 ngx_uint_t restrict_host_names; 105 ngx_uint_t restrict_host_names;
90 106
91 ngx_flag_t ignore_invalid_headers; 107 ngx_flag_t ignore_invalid_headers;
109 ngx_array_t wildcards; /* array of ngx_http_server_name_t */ 125 ngx_array_t wildcards; /* array of ngx_http_server_name_t */
110 126
111 /* the default server configuration for this address:port */ 127 /* the default server configuration for this address:port */
112 ngx_http_core_srv_conf_t *core_srv_conf; 128 ngx_http_core_srv_conf_t *core_srv_conf;
113 129
114 ngx_uint_t default_server; /* unsigned default_server:1; */ 130 ngx_http_listen_conf_t conf;
115 }; 131 };
116 132
117 133
118 typedef struct { 134 typedef struct {
119 ngx_str_t name; 135 ngx_str_t name;