Page 1 of 1

Cannot change rules - triggers header error

Posted: 03 Feb 2020, 02:19
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

Re: Cannot change rules - triggers header error

Posted: 18 Mar 2020, 04:07
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