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
Перейти к:навигация, поиск
(Новая страница: «=== Apache - Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration === Ошибка Invalid command 'He…»)
 
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
 +
[[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]]
 +
 
=== Apache - Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration ===
 
=== 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  
 
  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 />
  
Строка 10: Строка 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