module develop --nginx segmentation fault

Igor Sysoev is at rambler-co.ru
Thu Aug 21 15:46:06 MSD 2008


On Thu, Aug 21, 2008 at 07:44:24PM +0800, Delta Yeh wrote:

> I want to refactor the ncache2.0  because it don't follow the "best
> practice" module configuration.
> I want to add a on/off flag like the gzip module .
> I comment some call back function in module configuration when I 'm
> debuging it .
> 
> the code segment is :
> 
> 
> static ngx_command_t  ncache_http_get_cache_commands[] = {
> 
> 	{ ngx_string("ncache_http_cache"),
> 	NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
> 	ncache_http_cache_enable,
> 	NGX_HTTP_MAIN_CONF_OFFSET,

- 	NGX_HTTP_MAIN_CONF_OFFSET,
+ 	NGX_HTTP_LOC_CONF_OFFSET,


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list