D
D
Dmitry2016-06-22 16:58:20
Nginx
Dmitry, 2016-06-22 16:58:20

How to make friends gzip and sub_filter in nginx?

For example, this is the config:

gzip off;
    location / {
        sub_filter_once off;
        sub_filter  'aaa'  'bbb';

        include    /etc/nginx/proxy.conf;

        proxy_set_header        Accept-Encoding "";

        proxy_pass   http://127.0.0.1:8080;
    }

I want to enable gzip and leave the filter running.
Now, if I turn on compression, the replacement does not work.
What are the options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-06-22
@dimasmagadan

issue closed - updated nginx, it worked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question