Enable Gzip in Amazon Linux

To verify Apache module is loaded, run

Create file

Add following content

Restart Apache with

To verify gzip is working, run

You will see something like

NOTE: gzip compression only works if you have a reasonably large file. If your file is very small, then gzip won’t do anything.

See gzip