Page 1 of 1

Gzip

PostPosted:13 Nov 2018 19:57
by glauciolacerda
I'm using the WP Fastest Cache Premium plugin and to use gzip in Nginx, it asks you to change the settings in /etc/nginx/nginx.conf by adding the following:

gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types image / svg + xml text / plain text / html text / xml text / css text / javascript application / xml application / xhtml + xml application / rss + xml application / javascript application / x-javascript application / x-font-ttf application /vnd.ms-fontobject font / opentype font / ttf font / eot font / otf;

However, in doing so, VPSSIM displays the following warning:

Nginx has an error. VPSSIM can not run this function!
-------------------------------------------------- -----------------------
Nginx status:
-------------------------------------------------- -----------------------
nginx: [empt] "gzip" directive is not allowed here in /etc/nginx/nginx.conf:109
nginx: configuration file /etc/nginx/nginx.conf test failed

How can I solve?

Re: Gzip

PostPosted:14 Nov 2018 08:15
by nguyenoanh
Hello.

This config has already have in nginx.conf
you do not need to re-add them :)

Re: Gzip

PostPosted:14 Nov 2018 18:24
by glauciolacerda
wow Thanks

Re: Gzip

PostPosted:15 Nov 2018 07:50
by nguyenoanh
you're wellcome :)