[uWSGI] gzip transformation + http routing

Roberto De Ioris roberto at unbit.it
Thu Apr 23 14:40:28 CEST 2015


> Is it possible to "chain" a gzip transformation and an http routing
> action?
> I'm trying this simple snippet:
>
> plugin = router_http,router_redirect,transformation_gzip
> route-if-not = equal:${HTTPS};on
> redirect-permanent:https://${HTTP_HOST}${REQUEST_URI}
> response-route-if = contains:${HTTP_ACCEPT_ENCODING};gzip gzip:
>
> route-run = http:127.0.0.1:8169
>
> offload-threads = 2
>
> On port 8169 lives the program we're proxing to..
>
> I see no indication of gzip encoding on the response.
>
> cheers
> Guido
>
>

Offloading disables any kind of filtering.

The proxyhttp routing action disables offloading (even if i do not know if
it is a good idea, as you should increase sync concurrency adding more
threads or processes)


-- 
Roberto De Ioris
http://unbit.com


More information about the uWSGI mailing list