Welcome! Log In Create A New Profile

Advanced

Re: ngx_http_addition_module

July 30, 2010 10:36AM
On Fri, Jul 30, 2010 at 10:12:41AM -0400, dix75 wrote:

> Добрый день!
> Что-то я не пойму как работает этот
> модуль.
> Написал
> location / {
> add_before_body /before_action;
> add_after_body /after_action;
> }
>
> А куда писать текст до и после?

Текст писать в файл, или проксировать, или ещё чего:

location / {
add_before_body /before_action;
add_after_body /after_action;
}

location = /before_action {
root path/to/file;
}

location = /after_action {
root path/to/file;
}


--
Игорь Сысоев
http://sysoev.ru

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

ngx_http_addition_module

dix75 July 30, 2010 10:12AM

Re: ngx_http_addition_module

Igor Sysoev July 30, 2010 10:36AM

Re: ngx_http_addition_module

Alex Sergeyev July 30, 2010 11:14AM

Re: ngx_http_addition_module

Sergey Shepelev July 30, 2010 10:38AM

Re: ngx_http_addition_module

dix75 August 02, 2010 11:41AM

Re: ngx_http_addition_module

Anton Bessonov August 02, 2010 11:52AM

Re: ngx_http_addition_module

Sergey Shepelev August 02, 2010 12:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready