Apache - Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration: различия между версиями

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск
 
(не показана 1 промежуточная версия этого же участника)
Строка 5: Строка 5:
 
Ошибка  
 
Ошибка  
 
  Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration  
 
  Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration  
означает, что не подключен модуль mod_headers для Apache. <br />
+
означает, что не подключен модуль '''mod_headers''' для Apache. <br />
 
<br />
 
<br />
  
Строка 11: Строка 11:
 
  # a2enmod headers
 
  # a2enmod headers
 
  Enabling module headers.
 
  Enabling module headers.
To activate the new configuration, you need to run:
+
To activate the new configuration, you need to run:
 
   service apache2 restart
 
   service apache2 restart
 
  # /etc/init.d/apache2 restart
 
  # /etc/init.d/apache2 restart

Текущая версия на 10:45, 23 февраля 2017

Доступная цена

Apache - Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

Ошибка

Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration 

означает, что не подключен модуль mod_headers для Apache.

Для Debian/Ubuntu решается командами:

# a2enmod headers
Enabling module headers.
To activate the new configuration, you need to run:
 service apache2 restart
# /etc/init.d/apache2 restart

Проверяем модуль:

# apachectl -M | grep head
headers_module (shared)
Syntax OK