Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header Pagerinti Apache Web Server Security: Naudokite ServerTokens ir ServerSignature išjungti antraštė

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. Kai Apache HTTPD interneto serveris generuoja bet tinklalapius arba klaidų puslapius, kai kurios svarbios informacijos apie versiją ir kitų detalių įgyvendinami sistemos rodomi oji tinklalapio serveris antraštėje. For example, the information text may be like this: Pavyzdžiui, informacija, tekstas gali būti panašus į šį:

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 at xx.xx.xx.xx Port 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. Eilutę serveris antraštė atskleisti svarbų versija ir variantą informacijos apie operacinę sistemą Linux ir Apache programinės įrangos naudojamos mašinos, netiesiogiai išvengti galimų saugumo skylės, kurios egzistavo iki hakerami, ar bent padaryti kenksminga puola lengviau nustatyti jūsų sistemą prieinama puolimo taškų.

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. Siekiant užtikrinti, kad Apache web serveris nepalaiko transliuoti šį pranešimą visame pasaulyje viešai ir nustatyti galimą saugumo problemą, pakeisti šias dvi direktyvas ServerTokes ir ServerSignature į httpd.conf konfigūracijos failo.

  1. Login as root user or perform a sudo to the web server. Prisijungti kaip root vartotojo arba atlikti sudo prie interneto serverio.
  2. Open and edit httpd.conf or apache2.conf (in Apache 2) with vi or other text editor. Atidaryti ir redaguoti httpd.conf arba apache2.conf (Apache 2) su vi arba kitų tekstų redaktoriumi. 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 konfigūracijos paprastai esančių / etc / httpd / conf / arba / etc/apache2 / arba / etc / apache / (už Apache1.3) atsižvelgiant į tai, kuri Unix jūs naudojate.
  3. Locate the line with ServerTokens . Raskite eilutę su ServerTokens. You can perform a search by typing “/ServerTokes” and hit Enter. Jūs galite atlikti paiešką pagal rašyti "/ ServerTokes" ir paspauskite "Enter".
  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, jums gali pamatyti eilutė prasideda # ServerTokes Visas Šiuo atveju, pašalinti ar ištrinti # pobūdžio (paspausdami d raktas). 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 . Taip pat pakeisti Visas tapti Prod (paspauskite R klavišą pakeisti vieną simbolį, arba R pakeisti keletą simbolių), kad linija tampa ServerTokens Prod. In Apache 2.0 or 2.2, the line normally does not exist. Apache 2.0 arba 2.2, linijos, paprastai nėra. So the search will fail. Taigi, paieškos nebus. In this case, go to the bottom of config file, and add the new line with the following text. Šiuo atveju eikite į dugną konfigūracijos failą ir pridėti naują eilutę su šiuo tekstu. You can add new line by pressing o key. Jūs galite pridėti naują eilutę spausdami o klavišą.

    ServerTokens Prod ServerTokens Prod

  5. Next, search for ServerSignature. Toliau ieškoti ServerSignature. In Apache13, the line should just above the line of ServerTokens. Į Apache13, linija turi tik virš linijos 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. Redaguoti linija taip, kad atrodo tai ir Apache2, kuri nėra jau šią liniją, įtraukti į naują.

    ServerSignature Off ServerSignature Išjungta

  6. By now the Apache configuration file should have this two directives set as below: Šiuo metu Apache konfigūracijos failas turi turėti šios dvi direktyvos, numatančios, kaip nurodyta toliau:

    ServerSignature Off ServerSignature Išjungta
    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. Pirmoje eilutėje "ServerSignature Off" paveda Apache negali rodyti užsisklęs footer line pagal serverio generuojami dokumentai (pranešimai apie klaidas, mod_proxy ftp katalogas aukcionai, mod_info produkcija ir tt), kuri rodo serverio versijos numerį, ServerioVardas iš aptarnaujančių virtualaus serverio, elektroninio pašto nustatymą, ir sukuria "mailto:" nuoroda į ServerAdmin ir pamatinis dokumentas.

    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. Antroji eilutė "ServerTokens Prod" sukonfigūruoja Apache grįžti tik Apache kaip produkto serverio atsakymo antraštėje labai puslapyje prašymą, sulaiko OS didelių ir nedidelių versija info.

  7. Save and close the config file by pressing Shift-Colon, and then type wq keys, and hit Enter. Įrašyti ir uždaryti failo config spausdami Shift-Colon, tada įveskite wq klavišus, ir paspauskite Enter.
  8. Restart Apache. Paleiskite Apache. Typical command is service httpd restart or /etc/init.d/apache2 restart . Tipiška komanda paslauga httpd paleisti ar / etc/init.d/apache2 paleisti.
  9. Now, you will get only the Apache in the server response header: Dabar gausite tik Apache į serverio atsakymo antraštėje:

    Server: Apache Serveris: Apache

IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Mašininio vertimo, gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.


2 Responses to “Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header” 2 Responses to "Gerinti Apache Web Server Security: Naudokite ServerTokens ir ServerSignature išjungti antraštės"

  1. Leonid Leonidas
    November 17th, 2008 14:58 Lapkritis 17, 2008 14:58
    2 2

    Many thanks, i have been using the ServerSignature Off for long time now, but the second one is quite new. Many thanks, i buvo naudojant ServerSignature Ne ilgai dabar, o antroji yra gana nauja.

    Do you know how you can actually edit the serversignature so you will decide which information to send in case of an error? Ar žinote, kaip jūs iš tikrųjų galite redaguoti serversignature todėl jums nuspręsti, kurią informaciją siųsti atveju klaidą?

  2. Nilesh Nilesh
    October 24th, 2008 17:00 Spalis 24, 2008 17:00
    1 1

    It's really useful article to secure your dedicated web servers. Tai tikrai naudinga Straipsniai apsaugoti jūsų skirta interneto serverių. The information provided is easy to make changes on the server. Pateikta informacija yra lengvai atlikti pakeitimus į serverį.

Leave a Reply 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> Galite naudoti šias žymeles: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Subscribe to comments funkcija buvo išjungta. To receive notification of latest comments posted, subscribe to Norėdami gauti pranešimus apie naujausius komentarų, užsiprenumeruoti My Digital Life Comments RSS feed Mano skaitmeninis gyvenimas Komentarų RSS or arba register to receive registruotis, norint gauti new comments in daily email digest. Nauji komentarai kasdien elektroniniu paštu.
Custom Search

New Articles Nauji straipsniai

Incoming Search Terms for the Article Pradedantys Paieška Sąlygos straipsnį

apache ServerTokens apache ServerTokens - -- servertokens apache servertokens apache - -- apache2 servertoken apache2 servertoken - -- apache disable server header apache išjungti serverį antraštės - -- apache2 server header apache2 serverio antraštės - -- Apache server tokens Apache serveris žetonų - -- turn off server header apache išjungti serverį antraštės apache - -- servertokens footer servertokens apačią - -- apache disable header 404 apache išjungti antraštėje 404 - -- disable serverinfo in apache išjungti serverinfo, apache - -- disable ServerSignature apache išjungti ServerSignature apache - -- disable ServerTokens išjungti ServerTokens - -- http header remove Server HTTP antraštės pašalinti Server - -- apache2 servertokens apache2 servertokens - -- apache2 servertokens prod apache2 servertokens prod - -- apache turn off signature apache išjungti parašas - -- http header server: Apache HTTP antraštės serveris: Apache - -- Remove Server: Apache from headers Pašalinti Serveris: Apache iš antraštes - -- ServerTokens Product Only ServerTokens Produktas tik - -- absence ServerTokens apache2.conf Nesant ServerTokens apache2.conf - -- apache servertokens off apache servertokens off - -- disable put apache uždrausti pateikti apache - -- header server modify antraštės serverio pakeisti - -- how to disable apache headers kaip išjungti apache antraštes - -- +apache +ServerToken + apache + ServerToken - -- apache custom server signature Apache serverio parašą - -- apache2 disable server header apache2 išjungti serverį antraštės - -- apache conf ServerToken apache conf ServerToken - -- apache ServerTokens httpd.conf apache ServerTokens httpd.conf - -- appache ServerSignature mail appache ServerSignature paštas - -- appache ServerTokens appache ServerTokens - -- disable server signature išjungti serverio parašą - -- how to eliminate apache version on error page kaip pašalinti apache versija puslapio klaida - -- how to disable apache version info kaip išjungti apache versija info - -- php server signature Php serverio parašą - -- server signature off in apache serverio para išjungti, apache - -- servertokens prod servertokens prod - -- ServerTokens httpd.conf ServerTokens httpd.conf - -- ServerSignature httpd.conf ServerSignature httpd.conf - -- ServerTokens custom ServerTokens užsakymą - -- apache footer security apache stopkę saugumo - -- hide ServerTokens apache paslėpti ServerTokens apache - -- how to modify apache ServerTokens in ubuntu kaip pakeisti apache ServerTokens ubuntu - -- servertokens apache2 servertokens apache2 - --