patch: error_page and rewrite conflict in 0.4.5

Igor Sysoev is at rambler-co.ru
Wed Oct 4 12:38:24 MSD 2006



Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/http/modules/ngx_http_rewrite_module.c
===================================================================
--- src/http/modules/ngx_http_rewrite_module.c	(revision 53)
+++ src/http/modules/ngx_http_rewrite_module.c	(working copy)
@@ -178,6 +178,10 @@
         code(e);
     }
 
+    if (e->status == NGX_DECLINED) {
+        return NGX_DECLINED;
+    }
+
     if (r->err_status == 0) {
         return e->status;
     }


More information about the nginx mailing list