Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

The addition before sub

$
0
0
Hello,
I want to inject something before </body> and before </head>, but even if
there is no </body>.
So used add_after_body /after_body;
/after_body returns the text </body>, so there is at least one </body> in
the page.
I wanted sub_filter to replace </body> to SOMETHING</body>, but the
sub_filter is run before the addition_filter.
Changing the order in modules doesn't help, because the sub_filter doesn't
replace the text from subrequests.

I have a few questions:
How to replace two different substrings using sub_filter or something else?
How to force sub_filter to replace text, even if it comes from the
addition filter?

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>