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

I got this error today:

Syntax error on line 203 of /etc/apache2/apache2.conf:
Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.

This happen if the headers module from apche2 is missing.

Install with:

a2enmod headers

then restart the apche2:

service apache2 restart

Now it should work.

4 thoughts on “apache2 Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration”

  1. Hey! Someone in my Facebook group shared this website with us so I came to check it out.
    I’m definitely enjoying the information. I’m book-marking and will be tweeting this to
    my followers! Wonderful blog and great style and design.

  2. Hey! This is my first comment here so I just wanted to give a quick shout out and say I really enjoy reading your posts.
    Can you suggest any other blogs/websites/forums
    that go over the same subjects? Thank you so much!

Leave a Reply

Your email address will not be published.

one × three =