Skip to content

[Apache] YAJL JSON support was not enabled  #2035

Closed
@gspaivaequals

Description

@gspaivaequals

Hi, I'm using modsecurity 2.8.0 and having a problem about JSON parser. When I try to make content-type json requests I'm having the following log:

ModSecurity: JSON support was not enabled
ModSecurity: Access denied with code 400 (phase 2). Match of "eq 0" against "REQBODY_ERROR" required. [file "/usr/local/apache2/conf/extra/modsecurity.conf"] [line "64"] [id "200002"] [msg "Failed to parse request body."] [data ""] [severity "CRITICAL"] [hostname "xxx.xxx.xxx.xxx"]

The question is, I have compiled modsecurity 2.8.0 first without YAJL installed on my centos machine. After figured out that the problem was because YAJL I installed and recompile ModSecurity with YAJL option like this:

./configure --with-yajl

make

sudo make install

The logs shows yajl:

checking for libyajl config script... /usr/bin/pkg-config configure: using yajl v2.0.4
But I'm still getting the error mentioned above.

Can somebody help me? Thanks already!

Metadata

Metadata

Assignees

Labels

2.xRelated to ModSecurity version 2.xworkaround availableThe issue has either a temporary or permanent workaround available

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions