Why my nginx sub_filter reverse-proxy not working?

S__12091473

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

Example:

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;
}

 

 

SOURCE
https://stackoverflow.com/questions/31893211/http-sub-module-sub-filter-of-nginx-and-reverse-proxy-not-working

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 )

Google photo

You are commenting using your Google 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.