关于nginx:Nginx之Http模块系列之emptygif模块

9次阅读

共计 275 个字符,预计需要花费 1 分钟才能阅读完成。

empty_gif模块次要是用于收回单像素通明 GIF。

1. 简介

ngx_http_empty_gif_module模块,用于收回单像素通明 GIF。

2. 配置示例

location = /_.gif {empty_gif;}

当匹配到 /_.gif 的申请时,返回单像素通明 gif 做为 http 响应体。

3. 配置格局

Syntax:   empty_gif;
Default:  —
Context:  location

默认不开启,只存在于 localtion 上下文中。

4. 总结

ngx_http_empty_gif_module没有太多可介绍,咱们次要记住其次要作用,在业务须要时,进行配置即可。

正文完
 0