witekfl Gazeta.pl
September 14, 2010 12:32PM
I want to write mod_layout the right way.
layout have to insert "header" after the body element, or at the top it
there is no body element, but
there should be no header when there is no body and there is </frameset> on
the page.
I modified sub_filter_module:
http://rkd.republika.pl/NGINX/ngx_http_sub2_filter_module.c

Config options are similar to sub_filter.
I'm using:
sub2_filter <body 'HEADER<br/>';
sub2_filter_once on;
sub2_frameset </frameset>;

Sometimes it works, but when I set output_buffers to 1 1; it stopped working
with html like this:
<frameset cols="50%,50%">
<frame name ="a" src="a.html"/>
<frame name="b" src="b.html"/>
</framset>

How to make it work, especially how to achieve inserting something before
whole document, when there is no <body> in the document?
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

How to avoid deadlock?

witekfl Gazeta.pl 2663 September 14, 2010 12:32PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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