comparison src/http/modules/ngx_http_referer_module.c @ 603:858700ae46b4 release-0.3.23

nginx-0.3.23-RELEASE import *) Feature: the "optimize_host_names" directive. *) Bugfix: in using of the variables in the "path" and "alias" directives. *) Bugfix: the ngx_http_perl_module was incorrectly built on Linux and Solaris.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 24 Jan 2006 16:08:27 +0000
parents 77f77f53214a
children 3f8a2132b93d
comparison
equal deleted inserted replaced
602:0d42d54505f2 603:858700ae46b4
214 ngx_conf_merge_value(conf->blocked_referer, prev->blocked_referer, 0); 214 ngx_conf_merge_value(conf->blocked_referer, prev->blocked_referer, 0);
215 215
216 return NGX_CONF_OK; 216 return NGX_CONF_OK;
217 } 217 }
218 218
219 if ((conf->no_referer == 1 || conf->blocked_referer == 1)
220 && conf->keys->keys.nelts == 0 && conf->keys->dns_wildcards.nelts)
221 {
222 ngx_log_error(NGX_LOG_EMERG, cf->log, 0,
223 "the \"none\" or \"blocked\" referers are specified "
224 "in the \"valid_referers\" directive "
225 "without any valid referer");
226 return NGX_CONF_ERROR;
227 }
228
219 hash.key = ngx_hash_key_lc; 229 hash.key = ngx_hash_key_lc;
220 hash.max_size = 2048; /* TODO: referer_hash_max_size; */ 230 hash.max_size = 2048; /* TODO: referer_hash_max_size; */
221 hash.bucket_size = 64; /* TODO: referer_hash_bucket_size; */ 231 hash.bucket_size = 64; /* TODO: referer_hash_bucket_size; */
222 hash.name = "referers_hash"; 232 hash.name = "referers_hash";
223 hash.pool = cf->pool; 233 hash.pool = cf->pool;