Patch for ngx_purge_cache on nginx-1.3.2 not working

Piotr Sikora piotr.sikora at frickle.com
Mon Jul 2 17:40:45 UTC 2012


Hey,

> This is a wrong patch.  As of 1.3.2, nginx no longer exposes the
> NGX_HTTP_PROXY macro, and it never exposed any of the macros
> NGX_HTTP_{FASTCGI,SCGI,UWSGI} that this module is trying to use
> to detect if the modules were configured to be built.
> 
> The below patch should be better compatible with both old and
> changed versions of nginx:
> 
> %%%
> --- ngx_cache_purge-1.5/config 2011-12-20 16:36:20.000000000 +0400
> +++ ngx_cache_purge-1.5/config 2012-06-28 17:33:42.000000000 +0400
> @@ -1,3 +1,7 @@
> +if [ "$HTTP_PROXY" = "YES" ]; then
> +    have=NGX_HTTP_PROXY . auto/have
> +fi
> +
>  if [ "$HTTP_FASTCGI" = "YES" ]; then
>      have=NGX_HTTP_FASTCGI . auto/have
>  fi
> %%%

Committed, thanks to both of you!

Best regards,
Piotr Sikora < piotr.sikora at frickle.com >



More information about the nginx-devel mailing list