Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Apache Page Compression optimized by Apache

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Gzip introduction

Configure the web page compression function of Apache, which uses the gzip compression algorithm to compress the web page content and transfer it to the client browser.

1. Function:

It reduces the number of bytes transmitted through the network, speeds up the loading speed of web pages, saves traffic, and improves the browsing experience of users. Gzip and search engine crawling tools have a better shutdown.

The function module of web page compression realized by 2.Apache includes: mod_gzip module mod_deflate module

Both 3.mod_gzip module and mod_deflate module use gzip compression algorithm, the operation principle is similar to mod_deflate compression speed is slightly faster, but mod_gzip compression ratio is slightly higher than mod_gzip server CPU takes up some high traffic servers, using mod_deflate may load faster than mod_gzip

Steps to enable web page compression

1. Check to see if mod_deflate module is installed

two。 Modify the configuration file to enable compression

3. Bag grab test

Experiment

Compile and install Apache manually

For details of the installation process, please see: https://blog.51cto.com/14557905/2458177

Mount the installation package

Extract the file to the / opt directory

Install the compression module package

Install the environment package

The process of make & make install

Locate the compression module deflate and open the module, and check the other required modules

All are confirmed to be on.

Add a paragraph at the end of the file

Verify that the syntax is correct

Modify domain name and listening address

Turn on the service and turn off the firewall

Verification module

The module has been enabled!

The next step is to go to the client to verify

Then check it on the client.

Compression module function enabled successfully!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report