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