Why my nginx sub_filter reverse-proxy not working?


On your reverse proxy configuration, make sure accept all encoding:


location / {
proxy_pass http://backend-server;
proxy_set_header Accept-Encoding “”;
proxy_set_header Host backend-server.tld;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;

sub_filter “<title>” “<title>Judul “;

sub_filter_types *;
sub_filter_once off;




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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