nginx 配置 gzip 传输
2014-04-02 15:45
337 查看
在 nginx.conf 文件中加入
#启用gzip压缩
gzip on;
gzip_min_length 1000;
gzip_buffers 4 8k;
gzip_http_version 1.1;
##针对ie6保障浏览器不假死
gzip_disable "MSIE [1-6].";
gzip_types text/plain application/x-javascript text/css text/html application/xml;
注意 在 http { 中一定要有 include mime.types;
监测网站是否启用了gzip :http://gzip.zzbaike.com/
#启用gzip压缩
gzip on;
gzip_min_length 1000;
gzip_buffers 4 8k;
gzip_http_version 1.1;
##针对ie6保障浏览器不假死
gzip_disable "MSIE [1-6].";
gzip_types text/plain application/x-javascript text/css text/html application/xml;
注意 在 http { 中一定要有 include mime.types;
监测网站是否启用了gzip :http://gzip.zzbaike.com/
相关文章推荐
- windows 下 nginx 的启动 停止 关闭
- nginx重启、启动、关闭命令
- Liunx下Nginx安装问题
- Nginx SPDY缓冲区溢出漏洞
- linux(ubuntu)下安装nginx 笔记
- nginx日志分析利器GoAccess
- 几个启动和检测脚本 防止自己忘记
- Linux下Nginx安装
- nginx 关闭默认站点的方法
- 改变nginx logrotate方式采用sh文件自动切割日志文件
- linux中nginx安装,自己安装成功了
- 使用nginx在android手机上搭建rtmp服务器并测试
- Nginx学习-编写一个Helloworld模块(1)
- Windows下nginx+django+flup搭建与配置
- nginx-lua实现简单权限控制
- No input file specified解决方案
- redhat 5下源码安装nginx服务
- 【入门篇】Nginx + FastCGI 程序(C/C++) 搭建高性能web service的Demo及部署发布
- 【入门篇】Nginx + FastCGI 程序(C/C++) 搭建高性能web service的Demo及部署发布
- Nginx安全配置研究