Welcome! Log In Create A New Profile

Advanced

Re: Patch for ngx_purge_cache on nginx-1.3.2 not working

Piotr Sikora
July 02, 2012 01:42PM
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@frickle.com >

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Patch for ngx_purge_cache on nginx-1.3.2 not working

magicbear 1402 June 27, 2012 05:14PM

Re: Patch for ngx_purge_cache on nginx-1.3.2 not working

magicbear 786 June 27, 2012 05:20PM

Re: Patch for ngx_purge_cache on nginx-1.3.2 not working

Ruslan Ermilov 596 June 28, 2012 09:46AM

Re: Patch for ngx_purge_cache on nginx-1.3.2 not working

Piotr Sikora 688 July 02, 2012 01:42PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 195
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready