Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/3] Grand access to use `empty_gif_size' directive using in http, server, location and if in location
From: Kirill A. Korinskiy <catap@xxxxxxxx>
---
src/http/modules/ngx_http_empty_gif_module.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/http/modules/ngx_http_empty_gif_module.c
b/src/http/modules/ngx_http_empty_gif_module.c
index
17b46ac0efb06673232e808ca1d0b44d5994a1a2..e1a5749f44369b092913720ab89f565f8deb3130
100644
--- a/src/http/modules/ngx_http_empty_gif_module.c
+++ b/src/http/modules/ngx_http_empty_gif_module.c
@@ -39,7 +39,8 @@ static ngx_command_t ngx_http_empty_gif_commands[] = {
NULL },
{ ngx_string("empty_gif_size"),
- NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1|NGX_CONF_TAKE2,
+ NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF
+ |NGX_CONF_TAKE12,
ngx_http_empty_gif_size,
NGX_HTTP_LOC_CONF_OFFSET,
offsetof(ngx_http_empty_gif_loc_conf_t, fake),
--
1.6.2
|