Internal Server Error - htaccess

孤人 提交于 2019-11-28 03:38:00
Michael Slade

the Header directive is in the mod_headers apache module. You need to make sure that module is loaded into the apache server.

Allahbakash.G

Steps to enable HEADERS modules

$ cd /etc/apache2/mods-available
$ sudo a2enmod headers
$ /etc/init.d/apache2 restart

On your command line:

Install mod_headers

sudo a2enmod headers

and then restart apache

service apache2 restart

Try this:

<IfModule mod_headers.c> Header set [your_options] </IfModule>

Have you restarted WAMP after installing / enabling?

Amir Koklan

In an Ubuntu/Debian Machine you can simply run this command:

sudo ln -s /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled/

and should be all set.....

This answer works for me

<IfModule mod_headers.c> Header set [your_options] </IfModule>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!