GreensnoWorld
记录点滴,分享乐趣,一块凝固的时间
Apache 开启 gzip 压缩功能模块
Linux  2019年12月14日

1. Load mod_deflate, mod_headers, mod_filter:

LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule filter_module modules/mod_filter.so

2. Add the following code in the website's .htaccess file in the site root.

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
LIJG
余本顽劣,生于紫云下,长于汝水滨。早年求学,兴趣广泛,好高骛远,学无所成,仓皇入世。兴趣所致,投身互联网,求知未证,而立已至,始悟光阴荏苒,终需务实钻研。故有此站,记录时光,积累点滴,验证所学,分享愚见。指舞方寸间,心系万千年。
留言