nginx-add-custom-header:nginx使用lua扩展添加一个自定义的头

时间:2021-06-10 19:59:58
【文件属性】:
文件名称:nginx-add-custom-header:nginx使用lua扩展添加一个自定义的头
文件大小:900KB
文件格式:ZIP
更新时间:2021-06-10 19:59:58
Nginx nginx-add-custom-header 简介 使用openresty写的一个扩展。 添加一个自定义的header--x-mls-logid,用来追踪接口之间的调用流程。 测试环境 MacOSX 10.10.3 8GB i5 openresty 1.7.2.1 PHP 5.4.38 测试结果 使用wrk进行测试 未启用php 不加载扩展 加载扩展 启用php 不加载扩展 加载扩展 总结 在启用php的情况下,扩展对nginx的性能基本没有影响。
【文件预览】:
nginx-add-custom-header-master
----README.md(1KB)
----add_custom_header.lua(585B)
----resty.conf(643B)
----index.php(26B)
----img()
--------test3.png(387KB)
--------test4.png(380KB)
--------test2.png(65KB)
--------test1.png(67KB)
----nginx.conf(737B)

网友评论