]> git.kaiwu.me - nginx.git/commitdiff
set correct configuration file values while adding path
authorIgor Sysoev <igor@sysoev.ru>
Mon, 25 Jul 2011 10:22:38 +0000 (10:22 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 25 Jul 2011 10:22:38 +0000 (10:22 +0000)
patch by Maxim Dounin

src/http/ngx_http_file_cache.c

index ee287ba68fc9da166d36a76bf6242bf818aebf57..75e66789da587514ba8d017fd14c0eaf46f14b2e 100644 (file)
@@ -1604,6 +1604,8 @@ ngx_http_file_cache_set_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
     cache->path->manager = ngx_http_file_cache_manager;
     cache->path->loader = ngx_http_file_cache_loader;
     cache->path->data = cache;
+    cache->path->conf_file = cf->conf_file->file.name.data;
+    cache->path->line = cf->conf_file->line;
 
     if (ngx_add_path(cf, &cache->path) != NGX_OK) {
         return NGX_CONF_ERROR;