Cannot change rules - triggers header error

These forums are not for questions about ModSecurity, just the cmc script itself
Post Reply
Zuriel
Junior Member
Posts: 1
Joined: 03 Feb 2020, 02:13

Cannot change rules - triggers header error

Post by Zuriel »

trying to update a rule using 3.0.2 and i get this below. also it doesn't seem to be working (use to work not sure if its been deprecated or this software is dead? any fix would be apprecated

Code: Select all

Initial configuration generation failed with the following message:

The “/usr/sbin/httpd -DSSL -t -f /etc/apache2/conf/httpd.conf.work.3e8285bb.cfgcheck -C Include "/etc/apache2/conf.modules.d/*.conf"” command (process 30558) reported error number 1 when it ended.
Configuration problem detected on line 110 of file /etc/apache2/conf/httpd.conf.work.3e8285bb:	Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

	--- /etc/apache2/conf/httpd.conf.work.3e8285bb ---
	104
	105# This setting is required by cPanel & WHM in order to provide access to a default webpage when none exists
	106
	107    Options All
	108    AllowOverride None
	109    Require all granted
	110 ===>     Header set Cache-Control "no-cache, no-store, must-revalidate" <===
	111    Header set Pragma "no-cache"
	112    Header set Expires 0
	113
	114
	115# Required cPanel security policy: Disallow remote access to .htaccess, .htpasswd, .user.ini, and php.ini files
	116
	--- /etc/apache2/conf/httpd.conf.work.3e8285bb ---


Rebuilding configuration without any local modifications.

Failed to generate a syntactically correct Apache configuration.
Bad configuration file located at /etc/apache2/conf/httpd.conf.work.3e8285bb
Error:
The “/usr/sbin/httpd -DSSL -t -f /etc/apache2/conf/httpd.conf.work.3e8285bb.cfgcheck -C Include "/etc/apache2/conf.modules.d/*.conf"” command (process 30559) reported error number 1 when it ended.
Configuration problem detected on line 110 of file /etc/apache2/conf/httpd.conf.work.3e8285bb:	Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

	--- /etc/apache2/conf/httpd.conf.work.3e8285bb ---
	104
	105# This setting is required by cPanel & WHM in order to provide access to a default webpage when none exists
	106
	107    Options All
	108    AllowOverride None
	109    Require all granted
	110 ===>     Header set Cache-Control "no-cache, no-store, must-revalidate" <===
	111    Header set Pragma "no-cache"
	112    Header set Expires 0
	113
	114
	115# Required cPanel security policy: Disallow remote access to .htaccess, .htpasswd, .user.ini, and php.ini files
	116
	--- /etc/apache2/conf/httpd.conf.work.3e8285bb ---




..Done
bluefish001
Junior Member
Posts: 1
Joined: 18 Mar 2020, 04:02

Re: Cannot change rules - triggers header error

Post by bluefish001 »

Same issue here... dead in the water. Thoughts?
ea-apache24-mod_security2-2.9.3-4.4.2.cpanel.x86_64
ConfigServer ModSecurity Control - cmc v3.02
Post Reply