Welcome! Log In Create A New Profile

Advanced

Re: ngx http get module loc conf возвращает NULL

Валентин Бартенев
September 18, 2013 09:16AM
On Wednesday 18 September 2013 12:04:54 Aleus Essentia wrote:
> Написал маленький модуль. Но почему-то не могу получить конфигурации
> локации - возвращается NULL? Хендлер, в котором нужна конфа находится в
> фазе NGX_HTTP_CONTENT_PHASE.
> Вот код модуля:
[...]
> if( clcf ){
> ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "couldn't retrieve
> module configurationr.");
> return NGX_ERROR;
> }

Т.е. если clcf *не* 0, то печатаем ошибку и возвращаем NGX_ERROR.

--
Валентин Бартенев
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

ngx_http_get_module_loc_conf возвращает NULL

Aleus Essentia September 18, 2013 04:04AM

Re: ngx http get module loc conf возвращает NULL

Валентин Бартенев September 18, 2013 09:16AM

Re: ngx http get module loc conf возвращает NULL

Aleus Essentia September 18, 2013 06:59PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready