nginx-0.0.3-2004-04-12-20:38:09 import
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 4ddca78..73333df 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c
@@ -18,9 +18,6 @@ int (*ngx_http_top_body_filter) (ngx_http_request_t *r, ngx_chain_t *ch); -static ngx_str_t http_name = ngx_string("http"); - - static ngx_command_t ngx_http_commands[] = { {ngx_string("http"), @@ -33,10 +30,17 @@ ngx_null_command }; + +static ngx_core_module_t ngx_http_module_ctx = { + ngx_string("http"), + NULL, + NULL +}; + ngx_module_t ngx_http_module = { NGX_MODULE, - &http_name, /* module context */ + &ngx_http_module_ctx, /* module context */ ngx_http_commands, /* module directives */ NGX_CORE_MODULE, /* module type */ NULL, /* init module */
diff --git a/src/http/ngx_http_config.h b/src/http/ngx_http_config.h index ab5b477..45c2b7e 100644 --- a/src/http/ngx_http_config.h +++ b/src/http/ngx_http_config.h
@@ -35,9 +35,9 @@ #define NGX_HTTP_MODULE 0x50545448 /* "HTTP" */ -#define NGX_HTTP_MAIN_CONF 0x2000000 -#define NGX_HTTP_SRV_CONF 0x4000000 -#define NGX_HTTP_LOC_CONF 0x8000000 +#define NGX_HTTP_MAIN_CONF 0x02000000 +#define NGX_HTTP_SRV_CONF 0x04000000 +#define NGX_HTTP_LOC_CONF 0x08000000 #define NGX_HTTP_MAIN_CONF_OFFSET offsetof(ngx_http_conf_ctx_t, main_conf)