Skip to content

ModSecurity Audit Log Shows 403 or 200, but Nginx Returns 500 or 499 Under High Traffic #331

Open
@rohithmulka

Description

@rohithmulka

I'm encountering an issue where ModSecurity is blocking requests with a 403 status code, but Nginx is returning a 500 error to the client. Additionally, there are cases where ModSecurity returns a 200 status, but Nginx throws a 499 error instead. The ModSecurity audit log shows the expected 403 or 200 status codes, but this is not reflected in the Nginx responses.

This issue tends to occur when I send a large number of requests or simulate a DOS attack. I've included the relevant access, audit, and error logs below for further context.

Any guidance on why these discrepancies are happening under high traffic conditions and how to resolve them would be greatly appreciated.

access_log.json
audit_log.json
error_log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions