http://blog.zongzk.com/index/archives/742
Nginx_concat_module是淘宝(
JoshuaZhu
)开发的基于Nginx减少HTTP请求数量的扩展模块,主要是用于合并减少前段用户Request的HTTP请求的数量。
taobao.com
taobao.com使用
concat_module
进行css样式合并。
安装:
cd /us/local/src
wget http://nginx.org/download/nginx-1.0.10.tar.gz
tar xzvf nginx-1.0.10.tar.gz
cd nginx-1.0.10/
./configure –user=www –group=www –prefix=/usr/local/nginx
–with-http_stub_status_module –with-http_sub_module
–with-http_flv_module –with-http_gzip_static_module
–add-module=../nginx_concat_module/ && make && make
install
使用方法:
- location /temp/ {
- # 打开concat 功能
- # 默认关闭
- concat on;
-
- # 允许concat最大的文件数(http://www.zongzk.com/temp/??1.css,2.css,3.css…10.css) 默认最大设置十个文件。
- # (默认: 10)
- # concat_max_files 10;
-
- # 只允许相同类型的文件(例:http://www.zongzk.com/temp/??zzk.css,zongzk.js 默认情况下是不允许的)
- # 默认是开启的
- # concat_unique on;
-
- # 允许内容的类型
- # (default: application/x-javascript, text/css)
- # concat_types text/html;
- }
- #for i in {1..100};do echo “$i” > ./”$i”.css ;done
使用浏览器或者curl 进行访问
http://www.zongzk.com/temp/??1.css,2.css,3.css…10.css
–>
Ps:
css/js 有顺序需求谨慎使用。
注意不要和rewrite 发生冲突。
分享到:
相关推荐
--> nginx-http-module-v1.2.10 --> nginx-1.21.6 ======================== 在网上查找半天都只有教程,没有可免费下载的版本,深知没有积分遍地找资源的痛苦,无奈之下只好自己按照教程一步一个坑编译出来的,供...
./configure --prefix=/usr/local/nginx-1.6.0 --add-module=../nginx-sticky-module-1.25 --without-http_ssi_module --without-http_autoindex_module --without-http_fastcgi_module --with-...
windows平台nginx编译nginx-http-flv-module,可直接运行,基于nginx-1.17.10编译
1、最新版 nginx-http-flv-module(linux可执行程序,含nginx 1.19.3,http-flv-module:1.2.7) 2、内含说明文档,请下载查看。 3、请勿放置于中文路径下,否则无法启动 4、sbin/nginx -c conf/nginx.conf
在windows 7 64位 环境下使用nginx的nginx-http-flv-module搭建flv视频流播放所有的安装包,参考:https://blog.csdn.net/qq_33071429/article/details/102628008
1、最新版 nginx-http-flv-module(windows可执行程序,含nginx 1.19.3,http-flv-module:1.2.7) 2、内含说明文档,请下载查看。 3、请勿放置于中文路径下,否则无法启动
nginx-rtmp模块源码包nginx-rtmp-module-master
1、nginx-http-flv-module(windows可执行程序,含http-flv-module:1.2.7,nginx 1.19.3) 2、不要放置于中文路径下,否则无法启动 3、说明文档,请下载查看。
nginx-http-flv-module-1.2.10(包含nginx-rtmp-module)
基于nginx1.19.3版本,已编译好nginx-http-flv-module,开箱即用。鄙视那些收C币的。
headers-more-nginx-module-0.34
添加nginx-http-flv-module模块并重新编译后的nginx(windows版)
nginx-http-flv-module-master.zip 为http-flv做直播推流需要用到的,功能比rtmp-moudle强大。
windows版,2021年6月23日编译,已编译nginx-http-flv-module直播推流模块
OpenResty 是一个通过扩展 nginx 的快速 Web 应用服务器。...nginx-http-concat-module redis2-nginx-module and these C module for Lua: 以及这些用于 Lua 的 C 模块: lua-cjson lua-redis-parser lua-rds-parser
采用官网下载的nginx 1.21.4、nginx-http-flv-module 1.2.9、zlib-1.2.11、openssl-1.1.1l、pcre-8.45编译而成的64位nginx程序。
nginx-rtmp-module-master源码
Sticky是nginx的一个模块,它是基于cookie的一种nginx的负载均衡解决方案,通过分发和识别cookie,来使同一个客户端的请求落在同一台服务器上,默认标识名为route (a)客户端首次发起访问请求,nginx接收后,发现...
适用于windows,于2020年11月27日编译,已编译nginx-http-flv-module直播推流模块,感谢@winshining在github上的开源项目。
采用官网下载的nginx 1.17.7、nginx-http-flv-module 1.2.7编译而成的64位nginx程序。