1,024 Views
1. Go to terminal and login via ssh root/user.
2. Go to Nginx configuration file.
Note: If you have more then one sites( separate vhost), then go to /etc/nginx/sites-enabled/yoursite.conf and add or uncomment all below lines.
# Gzip Settings
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
wq!
Save file and quite.
3. Run the below command to check syntax of your update config file.
4. Now restart the service of Nginx.