diff --git a/config b/config index 34f42ec..b252748 100644 --- a/config +++ b/config @@ -15,7 +15,14 @@ if [ "$HTTP_UWSGI" = "YES" ]; then fi ngx_addon_name=ngx_http_cache_purge_module -HTTP_MODULES="$HTTP_MODULES ngx_http_cache_purge_module" -NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_cache_purge_module.c" +if test -n "$ngx_module_link"; then + ngx_module_type=HTTP + ngx_module_name=ngx_http_cache_purge_module + ngx_module_srcs="$ngx_addon_dir/ngx_cache_purge_module.c" + . auto/module +else + HTTP_MODULES="$HTTP_MODULES ngx_http_cache_purge_module" + NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_cache_purge_module.c" +fi have=NGX_CACHE_PURGE_MODULE . auto/have