How to fix “Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration” for apache2 in Ubuntu

Published by Igor Khrupin on

If you got:

Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

message in error log of your apache2 web server under Ubuntu you need to do next:

Run this command in terminal with sudo

cp -arp /etc/apache2/mods-available/headers.load  /etc/apache2/mods-enabled/headers.load  

Restart Apache2:

Also run with sudo

/etc/init.d/apache2 restart

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.