comparison src/http/ngx_http_config.h @ 593:425af804d968 release-0.3.18

nginx-0.3.18-RELEASE import *) 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; the bug had appeared in 0.3.12. *) Bugfix: on 64-bit platforms segmentation fault may occurred on start; the bug had appeared in 0.3.16.
author Igor Sysoev <igor@sysoev.ru>
date Mon, 26 Dec 2005 17:07:48 +0000
parents 8c0cdd81580e
children 5d2b8078c1c2
comparison
equal deleted inserted replaced
592:8b2e7f727cd0 593:425af804d968
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_ */