Hi
I have issues from installing modsecurity on nginx_apache with the following steps > -> set mod
get errors:
and see errors:
In the folder /usr/local/cwaf/rules/ there is not files at all
Please advice how to fix it.
Thanks
I have issues from installing modsecurity on nginx_apache with the following steps > -> set mod
./setup.sh -> Fresh Install nginx_apache with php 5.6+5.3 php-fpm
./build set modsecurity yes
./build modsecurity
./build nginx_apache
./build rewrite_confs
get errors:
Restarting nginx.
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
and see errors:
systemctl status nginx.service
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/etc/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2018-10-25 21:15:06 +07; 37s ago
Process: 23820 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
Main PID: 28115 (code=exited, status=0/SUCCESS)
Oct 25 21:15:06 virgo.serviceips.com systemd[1]: Starting The nginx HTTP and reverse proxy server...
Oct 25 21:15:06 virgo.serviceips.com nginx[23820]: nginx: [emerg] ModSecurityConfig in /etc/nginx/nginx-modsecurity-enable.conf:2: Cannot open config file: /usr/local/cwaf/rules/rules.conf.main
Oct 25 21:15:06 virgo.serviceips.com nginx[23820]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 25 21:15:06 virgo.serviceips.com systemd[1]: nginx.service: control process exited, code=exited status=1
Oct 25 21:15:06 virgo.serviceips.com systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Oct 25 21:15:06 virgo.serviceips.com systemd[1]: Unit nginx.service entered failed state.
Oct 25 21:15:06 virgo.serviceips.com systemd[1]: nginx.service failed.
In the folder /usr/local/cwaf/rules/ there is not files at all
ll /usr/local/cwaf/rules/
total 0
*** It used to have 1 file name like 00-Blank.... but I deleted it and re-install and now there is no file here.
Please advice how to fix it.
Thanks
Last edited: