mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 05:33:52 -06:00
set correct configuration file values while adding path
patch by Maxim Dounin
This commit is contained in:
parent
1850ce09a1
commit
d5a25a4b97
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user