Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header Улучшение веб-сервера Apache безопасности: использование ServerTokens и ServerSignature отключить заголовка

When Apache HTTPD web server generates any web pages or error pages, some important information about the version and other details implemented on the system are displayed in th web site server header. Когда Apache HTTPD веб-сервер создает каких-либо веб-страницах или страницах ошибок, некоторые важные сведения о версии и других деталей осуществляется по системе отображаются на веб-сайте й сервер заголовка. For example, the information text may be like this: Например, информация, текст может быть так:

Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b

Server: Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4 Server at xx.xx.xx.xx Port 80 Server: Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4 Server xx.xx.xx.xx на порт 80


The line in the server header expose important version and variant information about the Linux operating system and Apache software used on the machine, indirectly expose the possible security holes that are existed to the hackers, or at least make malicious attackers easier to identify your system for available attack points. Линия на сервере заголовка подвергать важно вариант и вариант информацию об операционной системе Linux и Apache программного обеспечения, используемого на компьютере, косвенно выявлять возможные дыры в безопасности, которые существуют для хакеров, или, по крайней мере, внести вредоносный нападавших легче определить вашу систему имеющихся точек атаки.

To ensure that the Apache HTTP web server does not broadcast this message to the whole world publicly and fix possible security issue, modify these two directives ServerTokes and ServerSignature in httpd.conf configuration file. Для того чтобы Apache HTTP веб-сервер не транслировать это сообщение на весь мир публично и устранить возможные проблемы безопасности, изменение этих двух директив ServerTokes и ServerSignature в httpd.conf файл конфигурации.

  1. Login as root user or perform a sudo to the web server. Войти в качестве корневого пользователя или выполнить Sudo на веб-сервере.
  2. Open and edit httpd.conf or apache2.conf (in Apache 2) with vi or other text editor. Открыть и отредактировать httpd.conf или apache2.conf (в Apache 2) с VI или другой текстовый редактор. The Apache configuration normally located in /etc/httpd/conf/ or /etc/apache2/ or /etc/apache/ (for Apache1.3) depending on which Unix you’re using. Apache конфигурации, как правило, расположены в / ETC / HTTPD / Conf / или / etc/apache2 / или / и т.д. / Apache / (для Apache1.3) в зависимости от Unix, который вы используете.
  3. Locate the line with ServerTokens . Найдите строку с ServerTokens. You can perform a search by typing “/ServerTokes” and hit Enter. Вы можете выполнить поиск, набрав "/ ServerTokes" и нажмите ввод.
  4. In Apache 1.3, you will likely to see a line starts with #ServerTokes Full In this case, remove or delete the # character (by pressing d key). В Apache 1.3, вы, скорее всего, чтобы линия начинается с # ServerTokes полном объеме в данном случае, удалить или удалить символ # (нажав D ключ). Also modify the Full to become Prod (press r key to replace one character, or R to replace multiple characters), so that the line becomes ServerTokens Prod . Также изменить Полный стать Prod (пресс-R ключом для замены одного символа, или R для замены нескольких символов), так что линия становится ServerTokens Prod. In Apache 2.0 or 2.2, the line normally does not exist. В Apache 2.0 или 2.2, линии, как правило, не существует. So the search will fail. Поэтому поиски обречены на провал. In this case, go to the bottom of config file, and add the new line with the following text. В этом случае, идти на дно конфигурационный файл, и добавить новую строку со следующим текстом. You can add new line by pressing o key. Вы можете добавить новую строку, нажав кнопку или клавишу.

    ServerTokens Prod ServerTokens Prod

  5. Next, search for ServerSignature. Далее, поиск ServerSignature. In Apache13, the line should just above the line of ServerTokens. В Apache13, линия должна чуть выше линии ServerTokens. Edit the line so that it looks like this, and in Apache2 which doesn’t already have this line, add in at new one. Изменить линию так, что она выглядит так, и в Apache2, которые еще не имеют этой строки, добавьте по крайней новый.

    ServerSignature Off ServerSignature Off

  6. By now the Apache configuration file should have this two directives set as below: В настоящее время Apache конфигурационный файл должен иметь этот две директивы определяют как ниже:

    ServerSignature Off ServerSignature Off
    ServerTokens Prod ServerTokens Prod

    The first line “ServerSignature Off” instructs Apache not to display a trailing footer line under server-generated documents (error messages, mod_proxy ftp directory listings, mod_info output, and etc) which displays server version number, ServerName of the serving virtual host, email setting, and creates a “mailto:” reference to the ServerAdmin of the referenced document. В первой строке "ServerSignature Off" инструктирует Apache не показывать прицепного колонтитул линия по серверу генерируемые документы (сообщения об ошибках, mod_proxy FTP-каталог списки, mod_info производства, и т.д.), в котором отображается номер версии сервера, имя_сервера от отбывания виртуального хоста, адрес электронной почты параметр, и создает "MailTo:" ссылка на ServerAdmin из ссылки документа.

    The second line “ServerTokens Prod” configures Apache to return only Apache as product in the server response header on very page request, suppressing OS, major and minor version info. Вторая линия "ServerTokens Prod" настраивает Apache на возвращение только Apache, как продукт в заголовке ответа сервера на очень страницу запроса, подавляя OS, крупные и мелкие версия Инфо.

  7. Save and close the config file by pressing Shift-Colon, and then type wq keys, and hit Enter. Сохраните и закройте файл конфигурации, нажав Shift-Колон, а затем введите WQ клавиш и нажмите Ввод ".
  8. Restart Apache. Перезагрузите Apache. Typical command is service httpd restart or /etc/init.d/apache2 restart . Типичная команда службы HTTPD перезагрузить или / etc/init.d/apache2 перезагрузки.
  9. Now, you will get only the Apache in the server response header: Теперь, вы получите только Apache в заголовке ответа сервера:

    Server: Apache Сервер: Apache

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. ВАЖНО: Это машина переведена страницу, которая предоставляется "как есть" без гарантии. Machine translation may be difficult to understand. Машинный перевод может быть трудным для понимания. Please refer to Пожалуйста, обратитесь к original English article Английский оригинальные статьи whenever possible. когда это возможно.

Share and contribute or get technical support and help at Делите и вклад или получить техническую поддержку и помощь в My Digital Life Forums Моя Цифровая жизнь Форумы .



One Response to “Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header” Один ответ на "Совершенствование Apache Web Server безопасности: Использование ServerTokens и ServerSignature Отключение заголовка"

  1. Nilesh
    October 24th, 2008 17:00 24 октябрь 2008 17:00
    1

    It’s really useful article to secure your Это действительно полезные статьи для обеспечения вашей dedicated web servers специальный веб-серверов . The information provided is easy to make changes on the server. Представленная информация очень легко вносить изменения на сервере.

Leave a Reply Оставить Ответить

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Вы можете использовать эти теги: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <дель DATETIME = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Подписка без комментариев


Custom Search

New Articles Новые статьи

Incoming Search Terms for the Article Входящий Поиск Условия для статьи

Apache ServerTokens Apache ServerTokens - -- ServerTokens Prod ServerTokens Prod - -- ServerTokens apache ServerTokens Apache - -- ServerTokens ServerTokens - -- Apache2 ServerTokens Apache2 ServerTokens - -- apache signature off Apache подпись Off - -- httpd.conf serversignature httpd.conf serversignature - -- apache server tokens Apache сервер жетонов - -- ServerTokens OS ServerTokens OS - -- ServerSignature EMail ServerSignature Эл - -- server tokens Сервер жетонов - -- apache remove server header удалить сервер Apache заголовка - -- ServerTokens off ServerTokens Off - -- edit apache server signature Изменить сервер Apache подпись - -- disable apache signature отключить Apache подпись - -- ServerTokens apache2 ServerTokens apache2 - -- server signature apache сервер Apache подпись - -- apache servertoken Apache servertoken - -- apache servertokens serversignature Apache servertokens serversignature - -- servertokens cpanel servertokens CPanel - -- Remove Server Header Удалите сервер заголовка - -- apache servertokens Apache servertokens - -- apache signature Apache подпись - -- apache servertokens prod Apache servertokens произв - -- apache disable server header отключить сервер Apache заголовка - -- custom apache server signature пользовательский сервер Apache подпись - -- apache2 server token apache2-сервер признака - -- Disable Server header apache Отключение сервера Apache заголовка - -- apache 2.2 serversignature Apache 2,2 serversignature - -- apache disable display apache version Apache отключить отображение версии Apache - -- apache server header Apache сервер заголовка - -- ServerSignature Off ServerSignature Off - -- apache2 signature off apache2 подпись Off - -- apache2 ServerToken apache2 ServerToken - -- apache disable server signature Apache отключить сервер подписи - -- custom ServerSignature apache ubuntu обычай ServerSignature Apache Ubuntu - -- ServerTokens ServerTokens - -- apache2 security headers apache2 безопасность заголовки - -- Apache2 ServerSignature Apache2 ServerSignature - -- ServerSignature ServerSignature - -- disable servertokens отключить servertokens - -- remove server from header удалить сервер из заголовка - -- Ubuntu Server remove server info Apache Ubuntu Server удалять информацию серверу Apache - -- apache remove server line from header сервер Apache удалить строку из заголовка - -- httpd SERVERSIGNATURE HTTPD SERVERSIGNATURE - -- Disable apache info Отключить Apache Info - -- serversignatur apache 2.2 serversignatur Apache 2,2 - -- ServerSignature appache ServerSignature appache - -- apache server token Apache сервер признака - -- Disable Server header Отключение сервера заголовка - --