Navigate back to the homepage

Error while adding new header in apache2

Infinitbility
Apache
August 25th, 2021 · 1 min read
Error while adding new header in apache2

Hello Friends 👋,

Welcome To Infinitbility! ❤️

Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration Action ‘configtest’ failed.

This tutorial will have to solve Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed apache issue getting.

When you added new header and try to restart your apache server but now your server not starting and getting error.

But when you try sudo apache2 configtest command and get something like below error.

The apache2 configtest failed. Output of config test was: AH00526: Syntax error on line XX of /etc/apache2/sites-enabled/site.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.

When we add first any new header then first we have to enable headers module and it’s achieve by below command

1sudo a2enmod headers

After enable headers module try apache2 restart command

1sudo service apache2 restart

Thanks For Reading…

Join our email list and get notified about new content

No worries, I respect your privacy and I will never abuse your email.

Every week, on Tuesday, you will receive a list of free tutorials I made during the week (I write one every day) and news on other training products I create.

Looking For React Native Tutorial?

we are trying to create the best Tutorial for react native developers.

When you want a daily updates about React Native Tutorial or infinitbility update subscribe to our newsletter.

Read React Native Tutorial

Request New Tutorial or Article on mail [email protected]

Tutorials

React Native

Categories

More articles from Infinitbility

How to detect tablet in react native

How to detect tablet in react native

React Native DeviceInfo isTablet example

August 24th, 2021 · 1 min read
How to lock orientation in react native

How to lock orientation in react native

React Native lock or disable orientation example

August 22nd, 2021 · 1 min read
© 2020–2021 Infinitbility
About
Link to $https://medium.com/infinitbilityLink to $https://www.facebook.com/InfinitbilityLink to $https://github.com/infinitbilityLink to $https://twitter.com/infinitbilityLink to $https://www.buymeacoffee.com/infinitbilityLink to $mailto:[email protected]