How to fix Invalid command ‘RequestHeader’ in the server configuration

Apache HTTP Server

Invalid command ‘RequestHeader’ error occurs in Linux server due to missing apache modules in our Linux server.

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

To fix this issue, just to enable the module by running the following command:

sudo a2enmod headers

After that. Restart apache

service apache2 restart

You Might Also Like

Leave a Reply

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