13 #define NGX_HTTP_GZIP_STATIC_OFF 0
14 #define NGX_HTTP_GZIP_STATIC_ON 1
15 #define NGX_HTTP_GZIP_STATIC_ALWAYS 2
24 static void *ngx_http_gzip_static_create_conf(
ngx_conf_t *cf);
25 static char *ngx_http_gzip_static_merge_conf(
ngx_conf_t *cf,
void *parent,
45 &ngx_http_gzip_static },
53 ngx_http_gzip_static_init,
61 ngx_http_gzip_static_create_conf,
62 ngx_http_gzip_static_merge_conf
69 ngx_http_gzip_static_commands,
113 rc = ngx_http_gzip_ok(r);
122 if (!clcf->gzip_vary && rc !=
NGX_OK) {
141 "http filename: \"%s\"", path.
data);
171 #if (NGX_HAVE_OPENAT)
210 "\"%s\" is not a regular file", path.
data);
225 log->
action =
"sending response to client";
259 if (b->
file == NULL) {
289 ngx_http_gzip_static_create_conf(
ngx_conf_t *cf)
305 ngx_http_gzip_static_merge_conf(
ngx_conf_t *cf,
void *parent,
void *child)
330 *h = ngx_http_gzip_static_handler;