ERROR [Module:Mod_Security]setSecRule

ibossonline

Verified User
Joined
Oct 26, 2019
Messages
103
Location
NYC
Code:
[Module:Mod_Security]setSecRule(type 2) /usr/local/lsws/conf/httpd-modsecurity.conf failed, ret -1, reason: 'Rules error. File: /usr/local/lsws/conf/httpd-modsecurity.conf. Line: 26. Column: 38. /etc/modsecurity.d/*.conf.main: Not able to open file. Looking at: '/etc/modsecurity.d/*.conf.main', '/etc/modsecurity.d/*.conf.main', '/usr/local/lsws/conf//etc/modsecurity.d/*.conf.main', '/usr/local/lsws/conf//etc/modsecurity.d/*.conf.main'.'.

need help with this. please I try many things but I don't want to broke the server again. thank god I got to have an old backup.
 

Attachments

  • Capture.PNG
    Capture.PNG
    63.1 KB · Views: 15
What's the ModSecurity ruleset you use on the server?
 
Code:
root@srv:/usr/local/directadmin/custombuild# ./build options
Nginx Unit: 1.18.0
OpenLitespeed: 1.7.3
Dovecot: 2.3.10.1
Dovecot configuration: yes
AWstats: 7.8
Exim: 4.94
exim.conf update: yes, release 4.5
BlockCracking: no
Easy Spam Fighter: yes
SpamAssassin: 3.4.4
SpamAssassin rule updates: daily
ClamAV: 0.102.3
MariaDB: 10.5.4
MySQL backup: yes
MySQL backup directory: /usr/local/directadmin/custombuild/mysql_backups
MySQL compress backups: yes
PHP (default): 7.3 as lsphp
PHP (additional): 7.4 as lsphp
PHP (additional, 3rd): 7.2 as lsphp
PHP (additional, 4th): 7.0 as lsphp
phpMyAdmin: 5.0.2-all-languages
ProFTPD: no
Pure-FTPd: 1.0.49
RoundCube webmail: 1.4.7
Replace "php.ini" with './build all' and './build php_ini': yes
Replace "php.ini" using type: production
Cron for notifications and (or) updates: yes
Cron frequency: daily
Auto updates: yes
Run "clean" every time: yes
Run "clean_old_webapps" every time: yes
Run "clean_old_tarballs" every time: yes
Show texts in bold: yes
SquirrelMail: 1.4.23-20190509_0200
Zend Guard Loader: yes
ionCube loader: 10.4.0
Suhosin: no
root@srv:/usr/local/directadmin/custombuild#
 
Code:
2020-07-29 23:17:07.213652    ERROR    Path for certificate file is invalid: /usr/local/lsws/ssl.crt/server.crt
2020-07-29 23:17:07.213704    ERROR    Path for certificate file is invalid: /usr/local/lsws/ssl.crt/server.crt
2020-07-29 23:17:07.213748    ERROR    Path for certificate file is invalid: /usr/local/lsws/ssl.crt/server.crt
2020-07-29 23:17:07.214861    ERROR    Path for certificate file is invalid: /usr/local/lsws/ssl.crt/server.crt
2020-07-29 23:17:07.215001    ERROR    [config:server:vhosts:vhost:104.237.9.154:context:/.well-known/acme-challenge/] path is not accessible: /var/www/html/.well-known/acme-challenge
2020-07-29 23:17:07.215547    ERROR    [config:server:vhosts:vhost:104.237.9.154:context:/squirrelmail/] path is not accessible: /var/www/html/squirrelmail
2020-07-29 23:17:07.215948    ERROR    Path for certificate file is invalid: /usr/local/lsws/ssl.crt/server.crt
2020-07-29 23:17:07.216013    ERROR    [config:server:vhosts:vhost:104.237.10.55:context:/.well-known/acme-challenge/] path is not accessible: /var/www/html/.well-known/acme-challenge
2020-07-29 23:17:07.216214    ERROR    [config:server:vhosts:vhost:104.237.10.55:context:/squirrelmail/] path is not accessible: /var/www/html/squirrelmail

no i am getting this one. :(
 
Code:
root@srv:/usr/local/directadmin/custombuild# grep rules options.conf
modsecurity_ruleset=comodo
root@srv:/usr/local/directadmin/custombuild#
 
Back
Top