mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 14:05:52 +03:00
[GH-ISSUE #53] compatibility with the ngx_http_rewrite_module #168
Labels
No labels
MacOS
Nginx
OpenResty
Tengine
bug
documentation
enhancement
needs-investigation
pull-request
question
stale
stale
stale
timeout
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ngx_waf#168
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RekGRpth on GitHub (Jul 22, 2021).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/53
solve
@ADD-SP commented on GitHub (Jul 22, 2021):
The reason we actively dropped compatibility with
ngx_http_rewrite_moduleis that if we wanted to configure the module in blockslocationandif, we would have to wait for nginx to locate the correspondinglocationbased on the URI, but this is done in phaseNGX_HTTP_FIND_CONFIG_PHASE. If the module is mounted toNGX_HTTP_REWRITE_PHASE, only partial compatibility will be achieved.Since it is not fully compatible, and since the previous compatibility scheme did not conform to the module development specification, we decided to discontinue compatibility with
ngx_http_rewrite_moduleand mount the module toNGX_HTTP_ACCESS_PHASE.This does not actually affect the security checks, since in most cases the response the client receives is generated in the phase
NGX_HTTP_CONTENT_PHASE.