Skip to content

Commit

Permalink
Warning about deprecated directives
Browse files Browse the repository at this point in the history
  • Loading branch information
marcstern committed May 28, 2024
1 parent 634f5f6 commit a915f07
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apache2/apache2_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -2319,18 +2319,28 @@ static const char *cmd_rule_engine(cmd_parms *cmd, void *_dcfg, const char *p1)
// Left for syntax compatibility
static const char *cmd_remote_rules_fail(cmd_parms *cmd, void *_dcfg, const char *p1)
{
ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_WARNING|APLOG_NOERRNO, 0, cmd->pool,
"ModSecurity: WARNING SecRemoteRulesFailAction is deprecated (%s:%d).",
cmd->directive->filename, cmd->directive->line_num);
return NULL;
}

// Left for syntax compatibility
static const char *cmd_remote_rules(cmd_parms *cmd, void *_dcfg, const char *p1,
const char *p2, const char *p3)
{
ap_log_perror(APLOG_MARK, APLOG_STARTUP | APLOG_WARNING | APLOG_NOERRNO, 0, cmd->pool,
"ModSecurity: WARNING SecRemoteRules is deprecated (%s:%d).",
cmd->directive->filename, cmd->directive->line_num);
return NULL;
}

// Left for syntax compatibility
static const char *cmd_status_engine(cmd_parms *cmd, void *_dcfg, const char *p1)
{
ap_log_perror(APLOG_MARK, APLOG_STARTUP | APLOG_WARNING | APLOG_NOERRNO, 0, cmd->pool,
"ModSecurity: WARNING SecStatusEngine is deprecated (%s:%d).",
cmd->directive->filename, cmd->directive->line_num);
return NULL;
}

Expand Down

0 comments on commit a915f07

Please sign in to comment.