diff --git a/config b/config index 413a4c2..74ada15 100644 --- a/config +++ b/config @@ -1,3 +1,3 @@ ngx_addon_name=ngx_http_remote_passwd -HTTP_MODULES="$HTTP_MODULES ngx_http_header_subs_filter_module" +HTTP_MODULES="$HTTP_MODULES ngx_http_remote_passwd_module" NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_remote_passwd.c" diff --git a/ngx_http_remote_passwd.c b/ngx_http_remote_passwd.c index 4220bbb..c93cd60 100644 --- a/ngx_http_remote_passwd.c +++ b/ngx_http_remote_passwd.c @@ -44,12 +44,14 @@ NGX_MODULE_V1_PADDING }; +static ngx_str_t ngx_http_remote_passwd_variable_name = ngx_string("remote_passwd"); + static ngx_int_t ngx_http_remote_passwd_add_variable(ngx_conf_t *cf) { ngx_http_variable_t *v; - v = ngx_http_add_variable(cf, ngx_string("remote_passwd"), 0); + v = ngx_http_add_variable(cf, &ngx_http_remote_passwd_variable_name, 0); if (v == NULL) { return NGX_ERROR; }