checking pkg-config is at least version 0.9.0... yes
configure: error:
libInjection was not found within ModSecurity source directory.
libInjection code is available as part of ModSecurity source code in a format
of a git-submodule. git-submodule allow us to specify the correct version of
libInjection and still uses the libInjection repository to download it.
You can download libInjection using git:
$ git submodule init
$ git submodule update
root@VM-8-10-ubuntu:/usr/local/src/ModSecurity# git submodule init
Submodule 'bindings/python'(https://github.com/SpiderLabs/ModSecurity-Python-bindings.git) registered for path 'bindings/python'Submodule 'others/libinjection'(https://github.com/libinjection/libinjection.git) registered for path 'others/libinjection'Submodule 'test/test-cases/secrules-language-tests'(https://github.com/SpiderLabs/secrules-language-tests) registered for path 'test/test-cases/secrules-language-tests'root@VM-8-10-ubuntu:/usr/local/src/ModSecurity# git submodule update
Cloning into '/usr/local/src/ModSecurity/bindings/python'...
error: RPC failed; curl 28 Failed to connect to github.com port 443: Connection timed out
fatal: the remote end hung up unexpectedly
fatal: clone of 'https://github.com/SpiderLabs/ModSecurity-Python-bindings.git' into submodule path '/usr/local/src/ModSecurity/bindings/python' failed
Failed to clone 'bindings/python'. Retry scheduled
Cloning into '/usr/local/src/ModSecurity/others/libinjection'...
Cloning into '/usr/local/src/ModSecurity/test/test-cases/secrules-language-tests'...
Cloning into '/usr/local/src/ModSecurity/bindings/python'...
Submodule path 'bindings/python': checked out 'bc625d5bb0bac6a64bcce8dc9902208612399348'Submodule path 'others/libinjection': checked out 'bfba51f5af8f1f6cf5d6c4bf862f1e2474e018e3'Submodule path 'test/test-cases/secrules-language-tests': checked out 'a3d4405e5a2c90488c387e589c5534974575e35b'Submodule path 'bindings/python': checked out 'bc625d5bb0bac6a64bcce8dc9902208612399348'
SecAuditEngine RelevantOnly
#SecAuditLogRelevantStatus "^(?:5|4(?!04))"SecAuditLogRelevantStatus "^(?:6(?!04))"# Log everything we know about a transaction.#SecAuditLogParts ABIJDEFHZ#SecAuditLogParts ABCDEFHZSecAuditLogParts ABCDEFGHIJKZ
# Use a single file for logging. This is much easier to look at, but# assumes that you will use the audit log only ocassionally.##SecAuditLogType SerialSecAuditLogType Concurrent
#SecAuditLog /var/log/modsec_audit.log#SecAuditLog /var/log/nginx/modsecurity/modsec_audit.logSecAuditLogFormat JSON
# Specify the path for concurrent audit logging.#SecAuditLogStorageDir /opt/modsecurity/var/audit/SecAuditLogStorageDir /var/log/nginx/modsecurity/