Now the thing is that, we have to enable it manually and in order to achieve that, simply follow the steps below:
Step 2: Add the type to the nginx’s main configuration file.
From the above we can see that we have added the following line to the configuration file on nginx:
Note: The line above starting with “#” defines a comment in the configuration file and has no effect at all.
Step 3: Verify any syntax errors and reload the nginx server.
Run the following commands to verify and then reload the nginx server:
sudo nginx -t
sudo nginx -s reload
Step 4: Now check whether the added content type is being delivered in compressed form using gzip.
From the picture above, we can now confirm that the content is now being delivered in compressed form as it has now added the following
More on Nginx:
- Set-up a Nginx web server on ubuntu 18.04 EC2 Instance AWS