how can I activate / install mod_headers on my server?
Best Answer
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:
Any chance you're doing this for the same reason the rest of us are doing this now, custom font files? If so, here's what I wound up doing, might help:
<FilesMatch "\.(ttf|otf|eot)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
Best Answer
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: