Tag Info

New answers tagged


As each location is independent, setting gzip off on @php_nogzip will not apply to the location ~ \.php$, it still use the nginx/server default. That is why you see gzip off, because that is the default. Only files delivered by the try_files in the @php_nogzip will be compressed. The only way i see is to use the map. In the http block use: map $uri $gz { ...

Top 50 recent answers are included