云服务器怎么开启gzip
云服务器开启gzip的操作方法:
1.检查apache是否加载mod_deflate模块:Ctrl+Alt+T打开终端,输入命令:httpd -M 查看,结果显示有deflate_module (shared)这个字段,则说明该模块已经加载成功。
2.接着找到apache的配置文件httpd.conf 并修改,在最后面加上这段代码:
<ifmodulemod_deflate.c>SetOutputFilterDEFLATESetEnvIfNoCaseRequest_URI.(?:gif|jpe?g|png)$no-gzipdont-varySetEnvIfNoCaseRequest_URI.(?:exe|t?gz|zip|bz2|sit|rar)$no-gzipdont-varySetEnvIfNoCaseRequest_URI.(?:pdf|mov|avi|mp3|mp4|rm)$no-gzipdont-varyDeflateCompressionLevel6AddOutputFilterByTypeDEFLATEtext/htmltext/plaintext/xmlapplication/x-httpd-phpAddOutputFilterDEFLATEjscss</ifmodule>
3.重启Apache服务,“service httpd restart”即可。
上一篇:云服务器如何重装win7系统
下一篇:购买云服务器怎么选择cpu
webacc.exe是什么文件?webacc.exe是不是病毒
WINSYS.vbs是什么文件?WINSYS.vbs是不是病毒
winssh.exe是什么文件?winssh.exe是不是病毒
wt.exe是什么文件?wt.exe是不是病毒
winsysetm.exe是什么文件?winsysetm.exe是不是病毒
winstrve.exe是什么文件?winstrve.exe是不是病毒
winsysupd7.exe是什么文件?winsysupd7.exe是不是病毒
winsysupd.exe是什么文件?winsysupd.exe是不是病毒
winsysupd2.exe是什么文件?winsysupd2.exe是不是病毒
winsysupd8.exe是什么文件?winsysupd8.exe是不是病毒