• Hello,

    I’m running nginx 1.8.0 with gzip compression enabled in my nginx.conf file, but the WP Performance Score Booster Settings page in my WP-admin backend states that “your web server does not support gzip compression”

    Here is the text of my nginx configuration:

    user www-data;
    worker_processes 2;
    pid /run/nginx.pid;
    
    # Maximum open file descriptors per process;
    # should be > worker_connections.
    worker_rlimit_nofile 8192;
    
    events {
    	worker_connections 8000;
    	# multi_accept on;
    }
    
    http {
    
    	##
    	# Basic Settings
    	##
    
    	sendfile on;
    	tcp_nopush on;
    	tcp_nodelay on;
    	keepalive_timeout 35;
    	types_hash_max_size 2048;
    	server_tokens off;
    	client_max_body_size 50M;
    	server_names_hash_bucket_size 64;
    	# server_name_in_redirect off;
    
    	# Update charset_types due to updated mime.types
      	charset_types text/xml text/plain text/vnd.wap.wml application/x-javascript application/rss+xml text/css application/javascript application/json;
    
      	# Format to use in log files
      	log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
        	              '$status $body_bytes_sent "$http_referer" '
            	          '"$http_user_agent" "$http_x_forwarded_for"';
    
    	include /etc/nginx/mime.types;
    	default_type application/octet-stream;
    
    	##
    	# Logging Settings
    	##
    
    	access_log /var/log/nginx/access.log main;
    	error_log /var/log/nginx/error.log warn;
    
    	##
    	# Gzip Settings
    	##
    
    	gzip on;
    	gzip_disable "msie6";
    
    	gzip_vary on;
    	gzip_proxied any;
    	gzip_comp_level 5;
    	gzip_min_length 256;
    	gzip_buffers 16 8k;
    	gzip_http_version 1.1;
    
    	gzip_types
        	application/atom+xml
        	application/javascript
        	application/json
        	application/ld+json
        	application/manifest+json
        	application/rdf+xml
        	application/rss+xml
        	application/schema+json
        	application/vnd.geo+json
        	application/vnd.ms-fontobject
        	application/x-font-ttf
        	application/x-javascript
        	application/x-web-app-manifest+json
        	application/xhtml+xml
        	application/xml
        	font/eot
        	font/opentype
        	image/bmp
        	image/svg+xml
        	image/vnd.microsoft.icon
        	image/x-icon
        	text/cache-manifest
        	text/css
        	text/javascript
        	text/plain
        	text/vcard
        	text/vnd.rim.location.xloc
        	text/vtt
        	text/x-component
        	text/x-cross-domain-policy
        	text/xml;
    	# text/html is always compressed by HttpGzipModule
    
    	##
    	# nginx-naxsi config
    	##
    	# Uncomment it if you installed nginx-naxsi
    	##
    
    	#include /etc/nginx/naxsi_core.rules;
    
    	##
    	# nginx-passenger config
    	##
    	# Uncomment it if you installed nginx-passenger
    	##
    
    	#passenger_root /usr;
    	#passenger_ruby /usr/bin/ruby;
    
    	# Common upstream settings
    
    	upstream php {
    	# server unix:/run/php5-fpm.sock;
    	# server unix:/var/run/hhvm/pid
    	server 127.0.0.1:8000;
    	# server 127.0.0.1:9000 backup;
    	}
    
    	upstream debug {
    	# Debug Pool
    	server 127.0.0.1:9001;
    	}
    
    	##
    	# Virtual Host Configs
    	##
    
    	include /etc/nginx/conf.d/*.conf;
    	include /etc/nginx/sites-enabled/*;
    }

    Thanks for any help anyone can provide!

    https://ww.wp.xz.cn/plugins/wp-performance-score-booster/

The topic ‘gzip compression ability not detected’ is closed to new replies.