Caddy coraza_waf modsecrity

i dont know how to set the caddyfile
alway get the problem
Error: adapting config using caddyfile: parsing caddyfile tokens for ‘coraza_waf’: Caddyfile:18 - Error during parsing: invalid key for filter directive: load_owasp_crs, import chain: [‘’]

my caddy version v2.7.4
i used add-package install the coraza-caddy

it my caddyfile

order coraza_waf first

:80 {
# Set this path to your site’s directory.
root * /var/www/wordpress
coraza_waf {
directives Include @coraza.conf Include @crs-setup.conf Include @owasp_crs/*.conf SecRuleEngine On

    # Enable the static file server.

    # Another common task is to set up a reverse proxy:
    # reverse_proxy localhost:8080

    # Or serve a PHP site through php-fpm:
    php_fastcgi unix/run/php/php7.4-fpm.sock

who can give me a tutorial about caddy coraza_waf modsecrity how to use it

It’s a plugin, so you could ask the plugin maintainers for help. Open an issue on that plugin’s GitHub repo for help.

Also, please mind your post formatting. Your config is extremely difficult to read. Use code blocks for config and logs. Same on GitHub. Learn how to write Markdown.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.