Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load crs config failed #169

Open
dirac921 opened this issue Aug 28, 2024 · 3 comments
Open

load crs config failed #169

dirac921 opened this issue Aug 28, 2024 · 3 comments

Comments

@dirac921
Copy link

dirac921 commented Aug 28, 2024

Error: loading initial config: loading new config: loading http app module: provision http: server srv0: setting up route handlers: route 0: loading handler modules: position 0: loading module 'waf': provision http.handlers.waf: invalid WAF config from string: failed to readfile: open @owasp_crs\REQUEST-901-INITIALIZATION.conf: The system cannot find the path specified.

{
	debug
	order coraza_waf first
}
(waf) {
	coraza_waf {
		load_owasp_crs
		directives `
			Include @coraza.conf-recommended
			Include @crs-setup.conf.example
			Include @owasp_crs/*.conf
			SecRuleEngine On
		`
	}
}
:8809 {
	import waf
	handle_path /videoApi/* {
		reverse_proxy https://10.89.15.11:943 {
			transport http {
				tls_insecure_skip_verify
			}
		}
	}
	log {
		format json {
			time_local
			time_format wall_milli
		}
		output file ./log/1.log
	}
}
@oleksandrl5
Copy link

Any updates?

@IlmLV
Copy link

IlmLV commented Dec 17, 2024

I suppose you are trying to run Caddy with this configuration on Windows, I have discovered that there is issue with using Include @owasp_crs/*.conf, looks like bundled configuration files with forward slash not working properly on Windows.
As quick fix currently I am using local files loaded with Include rules/*.conf

@jcchavezs
Copy link
Member

I believe after #176 it should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants