comparison src/http/ngx_http_config.h @ 142:84910468f6de NGINX_0_3_18

nginx 0.3.18 *) Feature: the "server_names" directive supports the ".domain.tld" names. *) Feature: the "server_names" directive uses the hash for the "*.domain.tld" names and more effective hash for usual names. *) Change: the "server_names_hash_max_size" and "server_names_hash_bucket_size" directives. *) Change: the "server_names_hash" and "server_names_hash_threshold" directives were canceled. *) Feature: the "valid_referers" directive uses the hash site names. *) Change: now the "valid_referers" directive checks the site names only without the URI part. *) Bugfix: some ".domain.tld" names incorrectly processed by the ngx_http_map_module. *) Bugfix: segmentation fault was occurred if configuration file did not exist; bug appeared in 0.3.12. *) Bugfix: on 64-bit platforms segmentation fault may occurred on start; bug appeared in 0.3.16.
author Igor Sysoev <http://sysoev.ru>
date Mon, 26 Dec 2005 00:00:00 +0300
parents 55a211e5eeb7
children 4cd3e70c4d60
comparison
equal deleted inserted replaced
141:249e67502bf3 142:84910468f6de
70 #define ngx_http_cycle_get_module_main_conf(cycle, module) \ 70 #define ngx_http_cycle_get_module_main_conf(cycle, module) \
71 ((ngx_http_conf_ctx_t *) \ 71 ((ngx_http_conf_ctx_t *) \
72 cycle->conf_ctx[ngx_http_module.index])->main_conf[module.ctx_index] 72 cycle->conf_ctx[ngx_http_module.index])->main_conf[module.ctx_index]
73 73
74 74
75 #define NGX_HTTP_CONFIG_HASH 10007
76
77 #define NGX_HTTP_WILDCARD_HASH 1
78
79 typedef struct {
80 ngx_pool_t *pool;
81 ngx_pool_t *temp_pool;
82
83 ngx_array_t keys;
84 ngx_array_t *keys_hash;
85
86 ngx_array_t dns_wildcards;
87 ngx_array_t *dns_hash;
88 } ngx_http_hash_conf_t;
89
90
91 ngx_int_t ngx_http_config_add_hash(ngx_http_hash_conf_t *h, ngx_str_t *key,
92 void *value, ngx_uint_t flags);
93
94
95
96 #endif /* _NGX_HTTP_CONFIG_H_INCLUDED_ */ 75 #endif /* _NGX_HTTP_CONFIG_H_INCLUDED_ */