In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "Apache how to turn on GZIP compression function". In daily operation, I believe many people have doubts about how to turn on GZIP compression function in Apache. The editor consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how Apache turns on GZIP compression function". Next, please follow the editor to study!
The process of HTTP request Gzip processing on Apache server
1. After receiving the HTTP request from the browser, the Apache server checks whether the browser supports HTTP compression (Accept-Encoding information).
2. If the browser supports HTTP compression, the Apache server checks the suffix name of the request file.
A, if the request file is HTML, CSS, JS, Images and other static files, the Apache server checks whether the latest compressed file of the requested file already exists from the compressed buffer directory, and returns the compressed request file if it does not exist, and stores the compressed file in the compressed buffer directory, if it already exists, directly returns the compressed file of the requested file.
B, if the request file is a dynamic file, the Web server dynamically compresses the content and returns it to the browser, and the compressed content is not stored in the compressed cache directory.
Apache supports configuration of GZIP compression
1. Edit the http.conf file and open the mod_deflate module
Remove the note # before the # LoadModule headers_module modules/mod_headers.so baby named http://www.bbqmw.net/qm_yeqm
Remove the comment before # LoadModule deflate_module modules/mod_deflate.so #
Remove the comment before # LoadModule filter_module modules/mod_filter.so #
2. Configure parameters related to Gzip compression
At this point, the study on "how to turn on GZIP compression in Apache" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.