переменные

RaPaMaN rapaman at virthost.net
Tue Nov 22 19:47:41 MSK 2005


Добрый вечер, Игорь !

Увеличил до 1000, получил:

2005/11/22 10:04:26 [emerg] 1777#0: could not build the http variables hash, 
you should increase either http variables_size: 1000 or http 
variables_bucket_limit: 1
2005/11/22 10:04:26 [emerg] 1777#0: the configuration 
file /usr/local/nginx/conf/nginx.conf test failed

С Уважением,
Дмитрий.

В сообщении от Tuesday 22 November 2005 11:19 Igor Sysoev написал(a):
> On Mon, 21 Nov 2005, RaPaMaN wrote:
> > Добавил в конфиг конструкцию вида:
> >
> >    if ( $query_string ~* 'thepage=(\d+)' ) {
> >        set $pagenum    $1;
> >    }
> >    if ($pagenum) {
> >    rewrite     ^.*$    /showlinks_$pagenum.htm permanent;
> > }
> >
> >
> > и получил вывод при запуске nginx -t:
> >
> >
...................................
>
> В src/http/ngx_http_variables.c нужно изменить
>
> -cmcf->variables_hash.max_size = 500;
> +cmcf->variables_hash.max_size = 1000;
>
> А вообще нужно 1) сделать это настраиваемым и 2) создавать хэш, только
> если собран ngx_http_ssi_module, так как этот хэш используется только там,
> во всех остальных модулях имена переменных превращаются в индексы.
>
>
> Игорь Сысоев
> http://sysoev.ru


More information about the nginx-ru mailing list