File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -565,17 +565,14 @@ ngx_http_modsecurity_init(ngx_conf_t *cf)
565
565
}
566
566
/**
567
567
*
568
- * Seems like we cannot do this very same thing with
569
- * NGX_HTTP_FIND_CONFIG_PHASE. it does not seems to
570
- * be an array. Our next option is the REWRITE.
571
- *
572
- * TODO: check if we can hook prior to NGX_HTTP_REWRITE_PHASE phase.
568
+ * We want to process everything in the NGX_HTTP_ACCESS_PHASE because we need to allow
569
+ * ngx_http_limit_*_module to run
573
570
*
574
571
*/
575
- h_rewrite = ngx_array_push (& cmcf -> phases [NGX_HTTP_REWRITE_PHASE ].handlers );
572
+ h_rewrite = ngx_array_push (& cmcf -> phases [NGX_HTTP_ACCESS_PHASE ].handlers );
576
573
if (h_rewrite == NULL )
577
574
{
578
- dd ("Not able to create a new NGX_HTTP_REWRITE_PHASE handle" );
575
+ dd ("Not able to create a new NGX_HTTP_ACCESS_PHASE handle" );
579
576
return NGX_ERROR ;
580
577
}
581
578
* h_rewrite = ngx_http_modsecurity_rewrite_handler ;
You can’t perform that action at this time.
0 commit comments