gzip describes
configuring Apache web compression, using gzip compression algorithm to the transmission to the client browser after compression of web content.
1. Role:
- Reduce the number of bytes transmitted over the network, speed up page loading speed
- Save traffic, improve the user's browsing experience
- gzip and search engine crawlers have a better shutdown
2.Apache page-compression module include: - mod_gzip module
- mod_deflate module
3.mod_gzip module and module mod_deflate - Both use gzip compression algorithm, similar to how it works
- mod_deflate compressed slightly faster, but slightly higher compression ratio mod_gzip
- mod_gzip occupation of server CPU higher
- High-traffic server, use mod_deflate may load faster than mod_gzip
enable web compression step
1. Check whether the installation mod_deflate module
2. modify the configuration file, compression is enabled
3. capture test
test
a manually compile and install Apache
detailed installation Please review process: https://blog.51cto.com/14557905/2458177
mount installation package
to extract the files to the / opt directory under the
installed compression module package
installation environment package
process make && make install is
to find and open the deflate compression module module check other required modules
have to confirm the oN state
at the end of the file with a piece of content
to verify whether the correct syntax
to modify the domain name and listen address
to open service, turn off the firewall
authentication module
module has been enabled!
The next step is to test the client
on the client machine and then view the
compression module function enabled successfully!