Search/Replace in page output with NGINX

If you’re using NGINX web server, add this into your NGINX configuration file to modify output of your webpages:

sub_filter '<search_expression>' '<replace_expression>';
sub_filter_once off;Code language: Nginx (nginx)

Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.