Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how can I activate / install mod_headers on my server?

share|improve this question
up vote 19 down vote accepted

I'm taking a leap of faith assuming you are talking about a Debian/Ubuntu server here, as Redhat/Fedora/Centos have it installed and enabled as part of the default httpd installation.

On Debian/Ubuntu, you can enable mod_headers (it should be already installed as part of the apache2 installation), by running:

a2enmod headers
apache2 -k graceful
share|improve this answer
It works !! thanks – jruzafa Sep 24 '15 at 15:26
I run your last command and found some mistakes in my system. I think they come from wrongly set owners/permissions in Raspbian Jessie of the new user. I opened a new thread about it – Masi May 31 at 15:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.