Welcome! Log In Create A New Profile

Advanced

Re: http_push_module

January 26, 2010 07:04AM
> 1. Я думаю, что у нгинкс есть функция, позволяющаяя отправить фейковый запрос на урл, но я не могу её найти.

внутренний редирект - в хандлере делаешь:
return ngx_http_internal_redirect(r, &uri, NULL);



> 2. Я не понимаю, как можно писать информацию в лог. Мне это нужно для отладки.

ngx_log_error(NGX_LOG_ALERT, r->connection->log, ngx_errno, "шаблон как printf %s %d", string, tseloe);

NGX_LOG_ALERT - тип логгирования, может быль ERR, NOTICE, DEBUG итд.

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

http_push_module

pyromaniac January 26, 2010 04:17AM

Re: http_push_module

akalend January 26, 2010 07:04AM

Re: http_push_module

Peter Leonov January 26, 2010 07:40AM

Re: http_push_module

pyromaniac January 26, 2010 12:00PM

Re: http_push_module

pyromaniac January 27, 2010 04:04AM

Re[2]: http_push_module

akalend January 27, 2010 04:36AM

Re: Re[2]: http_push_module

pyromaniac January 27, 2010 05:38AM

Re[4]: http_push_module

akalend January 27, 2010 06:16AM

Re: Re[2]: http_push_module

Maxim Dounin January 27, 2010 07:00AM

Re: Re[2]: http_push_module

pyromaniac January 27, 2010 10:22AM

Re[4]: http_push_module

Pavel V. January 28, 2010 12:50PM

Re: Re[4]: http_push_module

pyromaniac January 28, 2010 01:28PM

Re: Re[4]: http_push_module

pyromaniac January 28, 2010 01:40PM

Re[6]: http_push_module

akalend January 28, 2010 05:46PM

Re: Re[6]: http_push_module

Sergey Shepelev January 28, 2010 06:04PM

Re[8]: http_push_module

akalend January 29, 2010 02:46AM

Re: Re[8]: http_push_module

pyromaniac January 29, 2010 03:08AM

Re: Re[8]: http_push_module

pyromaniac February 01, 2010 01:12PM

Re: Re[4]: http_push_module

Peter Leonov January 29, 2010 12:14AM

Re: Re[4]: http_push_module

pyromaniac January 29, 2010 01:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 292
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