You might encounter this error in your Apache log:

1
2
[Tue Feb 01 00:57:02 2011] [alert] [client 192.168.1.102] /home/cliper/lampen/.htaccess:
Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

In my case, the issue was that mod_headers was not enabled.

So I ran:

1
a2enmod headers

Then I restarted Apache:

1
/etc/init.d/apache2 restart

If you are on shared hosting, you may need to contact your system administrator or hosting provider instead.

Environment:

  • System: Debian
  • Apache version: 2.2.9 (Debian)