Nginx_apache and mod_gzip

ViAdCk

Verified User
Joined
Feb 14, 2005
Messages
300
Hello,

We are doing some tests on a new server with nginx_apache but everytime we check a wordpress site with google pagespeed or gtmetrix it says gzip compression isn't enabled.

But both in the nginx and apache configuration files it is enabled as default.

Any idea why this could be happening?

Thanks!
 
Hi, I came across the same problem
In my case gtmetrix showed an svg file not being compressed

I copied nginx-gzip.conf from /etc/nginx to /usr/local/directadmin/custombuild/custom/nginx_reverse/conf

I modified the nginxnginx-gzip.conf:
(added image/svg+xml to gzip_types)
Code:
gzip on;
gzip_static on;
gzip_disable "msie6";
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js image/svg+xml;
gzip_buffers 16 8k;

then ran

Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

afterwards GTmetrix wasn't showing "Enable gzip compression" anymore
 
Back
Top