При добавлении кода в .htaccess возникает ошибка error 500
<FilesMatch "\.(js|ico|gif|jpg|png|css|html)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
/var/log/apache2/error.log,
[Sun Jan 03 14:08:47 2010] [alert] [client 127.0.0.1] /var/www/dicno/public_html/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
Решение:
su -
cd /etc/apache2/mods-enabled/
ln -s ../mods-available/headers.load headers.load
sh /etc/init.d/apache2 force-reload
link
Link2
<FilesMatch "\.(js|ico|gif|jpg|png|css|html)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
/var/log/apache2/error.log,
[Sun Jan 03 14:08:47 2010] [alert] [client 127.0.0.1] /var/www/dicno/public_html/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
Решение:
su -
cd /etc/apache2/mods-enabled/
ln -s ../mods-available/headers.load headers.load
sh /etc/init.d/apache2 force-reload
link
Link2
Комментариев нет:
Отправить комментарий