enable mod_headers in apache 2
March 22nd, 2007 by Lawrence David
to enable mod_headers in apache 2, enter on the command-line:
$ sudo a2enmod headers
followed by:
$ sudo /etc/init.d/apache2 force-reload
March 22nd, 2007 by Lawrence David
to enable mod_headers in apache 2, enter on the command-line:
$ sudo a2enmod headers
followed by:
$ sudo /etc/init.d/apache2 force-reload
Thank you for the tip. Worked like a charm!
There is no need to force the reload, a simple sudo apache2ctl restart is enough
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 …
Thanks mate. That was solving my problem.
Maybe also good to know it’s for SUSE Linux.