Feed on
Posts
Comments

to enable mod_headers in apache 2, enter on the command-line:

$ sudo a2enmod headers

followed by:

$ sudo /etc/init.d/apache2 force-reload


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

4 Responses to “enable mod_headers in apache 2”

  1. on 03 May 2010 at 7:54 am Joke Buddha

    Thank you for the tip. Worked like a charm!

  2. on 30 Sep 2011 at 10:00 am Soraph

    There is no need to force the reload, a simple sudo apache2ctl restart is enough

  3. on 04 Oct 2011 at 12:01 pm Bram

    apache2ctl restart will restart your entire apache, whereas the reload will only reload the config for apache.

    what the /etc/init.d/apache2 scripts does is call the apache2ctl function, but inside a nice wrapper. always prefer to handle your services through the services. so if you really need a restart to /etc/init.d/apache2 restart.

    but if you can, go with the reload …

  4. on 08 Aug 2012 at 8:37 am Gordon

    Thanks mate. That was solving my problem.
    Maybe also good to know it’s for SUSE Linux.

Did I get this wrong? Let me know!

Trackback URI | Comments RSS