I have done this on Ubuntu server but it should be same for other distributions.

To enable mod headers on Apache2 (httpd) you need to run this command:

sudo a2enmod headers

Then restart Apache

sudo service apache restart