Skip to content

Config failure reason not logged #5

@mac-chaffee

Description

@mac-chaffee

Looks like the log message for when modsecurity fails to load the configuration is not being included in the error message:

msg = modsecProcessConfig(modsec_config, file, getcwd(cwd, 128));
if (msg != NULL) {
LOG(&null_worker, "ModSecurity load configuration failed.\n");
return -1;

So if you have a syntax error in your config, you just get this log:

1670881710.648713 [00] ModSecurity load configuration failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions