How to Enable Gzip on Nginx Servers
Step 1) IMPORTANT: Before you start, please ask your host provider to check if the ngx_http_gzip_static_module installed. If it is not installed, ask them to install it, else it can cause errors if you enable gzip without that module.
Step 2) Then you need to locate the
Normally the nginx.conf file is located at:
If you can't find it there, try the following location:
Step 3) Once you locate nginx.conf, edit it, add
gzip_static on; on the
Step 4) Once you save the nginx.conf file, restart the server.