Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header Zlepšiť Apache Web Server Bezpečnosť: Používajte ServerTokens a ServerSignature Vyhostiť Header

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. Keď webový server Apache httpd generuje akejkoľvek webovej stránky alebo stránky s chybami, niektoré dôležité informácie o verzii a ďalšie podrobnosti vykonávať na systéme sú zobrazené na webových stránkach servera tý hlavičke. For example, the information text may be like this: Napríklad informácie, text môže byť takhle:

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. Táto položka v hlavičke servera odhaliť dôležité verziu a variant informácie o operačnom systéme Linux a Apache softvér používaný na stroji, nepriamo odhaliť prípadné bezpečnostné diery, ktoré existovali k hackeri, alebo aspoň aby škodlivý útočníci ľahšie identifikovať váš systém dostupné útoku bodov.

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. Aby bolo zabezpečené, že Apache HTTP webový server nie je vysielanie tejto správy do celého sveta verejne a oprava možná bezpečnostný problém, zmeniť tieto dve smernice ServerTokes a ServerSignature v konfiguračnom súbore httpd.conf.

  1. Login as root user or perform a sudo to the web server. Prihlásiť sa ako root alebo sudo vykonať na webovom serveri.
  2. Open and edit httpd.conf or apache2.conf (in Apache 2) with vi or other text editor. Otvoriť a upraviť httpd.conf alebo apache2.conf (v Apache 2) s vi alebo iný textový editor. 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 konfigurácia zvyčajne nachádza v / etc / httpd / conf / alebo / etc/apache2 / alebo / etc / apache / (pre Apache1.3) v závislosti na Unix, ktorý ste pomocou.
  3. Locate the line with ServerTokens . Vyhľadajte riadok s ServerTokens. You can perform a search by typing “/ServerTokes” and hit Enter. Môžete vykonať vyhľadávanie zadaním "/ ServerTokes" a stlačte kláves 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). V Apache 1.3, budete pravdepodobne vidieť riadok začína # ServerTokes Úplné V tomto prípade odstráňte alebo vymazať # povahy (stlačením d key). 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 . Tiež zmeniť, aby sa stal Úplné Prod (stlačením klávesy r nahradiť jeden znak, alebo R nahradiť viac znakov), takže položka sa stáva ServerTokens prod. In Apache 2.0 or 2.2, the line normally does not exist. V Apache 2.0 alebo 2.2, riadok normálně neexistuje. So the search will fail. Takže hľadanie zlyhajú. In this case, go to the bottom of config file, and add the new line with the following text. V tomto prípade prejdite do dolnej časti konfiguračného súboru, a pridajte nový riadok s týmto textom. You can add new line by pressing o key. Môžete pridať nový riadok stlačením o kľúč.

    ServerTokens Prod ServerTokens Prod

  5. Next, search for ServerSignature. Ďalšie hľadanie ServerSignature. In Apache13, the line should just above the line of ServerTokens. V Apache13, riadok by mal tesne nad líniou 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. Upraviť riadku, takže to vyzerá, ako je táto, a Apache 2, ktoré nie je už tento riadok, pridá sa na novú.

    ServerSignature Off ServerSignature Vypnuté

  6. By now the Apache configuration file should have this two directives set as below: Dnes Apache konfiguračný súbor by mal mať túto súpravu dvoch smerníc, ako je uvedené nižšie:

    ServerSignature Off ServerSignature Vypnuté
    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. Prvá položka "ServerSignature Off" instruuje Apache nebude zobrazovať koncové footer line za server-generované dokumenty (chybové hlášky, mod_proxy ftp adresáre výpisy, mod_info výstup, a atď), ktoré sa zobrazí číslo verzie servera, názov_servera z slúžiace virtuálnej hosť, e-mail nastavenie a vytvára "mailto:" odkaz na ServerAdmin z odkazovaného dokumente.

    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. Druhá položka "ServerTokens prod" konfiguruje Apache vrátiť iba Apache ako výrobok na serveri hlavičku odpovede na veľmi stránku žiadosti, potlačením OS, dur a moll version info.

  7. Save and close the config file by pressing Shift-Colon, and then type wq keys, and hit Enter. Uložiť a zavrieť config file stlačením Shift-Colon a zadajte WQ kľúča, a stlačte kláves Enter.
  8. Restart Apache. Reštartujte Apache. Typical command is service httpd restart or /etc/init.d/apache2 restart . Typický príkaz je služba httpd restart alebo / etc/init.d/apache2 restart.
  9. Now, you will get only the Apache in the server response header: Teraz sa dostanete iba na serveri Apache v hlavičke odpovede:

    Server: Apache Server: Apache

IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: Stránka je stroje preložené a poskytované "tak ako sú" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Obráťte sa prosím na original English article Anglický originál článku whenever possible. kedykoľvek je to možné.


2 Responses to “Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header” 2 Reakcie na "Zlepšiť Apache Web Server Bezpečnosť: Používajte ServerTokens a ServerSignature Vyhostiť Header"

  1. Leonid Leonid
    November 17th, 2008 14:58 17. novembra 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. Ďakujem, som bol s použitím ServerSignature off po dlhú dobu, ale na druhej je pomerne nová.

    Do you know how you can actually edit the serversignature so you will decide which information to send in case of an error? Viete, ako môžete skutočne upraviť serversignature takže budete rozhodovať, aké informácie poslať v prípade, že je chyba?

  2. Nilesh Nilesh
    October 24th, 2008 17:00 24. októbra 2008 17:00
    1 1

    It's really useful article to secure your dedicated web servers. Je to naozaj užitočné článok zabezpečte vaše špecializovaných internetových serveroch. The information provided is easy to make changes on the server. Poskytnuté informácie sa ľahko vykonať zmeny na serveri.

Leave a Reply Nechaj Odpoveď

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> Môžete použiť tieto značky: <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. Vyberajte komentáre funkcia bola vypnutá. To receive notification of latest comments posted, subscribe to Ak chcete dostávať oznámenie o najnovšie komentáre posta, prihláste sa My Digital Life Comments RSS feed My Digital Life Komentáre RSS or alebo register to receive register pre príjem new comments in daily email digest. nové komentáre v dennom email Digest.
Custom Search

New Articles Nové články

Incoming Search Terms for the Article Incoming Vyhľadávanie Podmienky pre článok

apache ServerTokens apache ServerTokens - -- servertokens apache servertokens apache - -- apache2 servertoken Apache 2 servertoken - -- apache disable server header apache server vypnúť záhlavie - -- apache2 server header Apache 2 server záhlavie - -- Apache server tokens Apache server žetónom - -- turn off server header apache vypnúť server hlavičku apache - -- servertokens footer servertokens Patička - -- apache disable header 404 apache vypnúť hlavičke 404 - -- disable serverinfo in apache vypnúť serverinfo v apache - -- disable ServerSignature apache vypnúť ServerSignature apache - -- disable ServerTokens vypnúť ServerTokens - -- http header remove Server http hlavičke odstrániť Server - -- apache2 servertokens Apache 2 servertokens - -- apache2 servertokens prod Apache 2 servertokens prod - -- apache turn off signature apache vypnúť podpis - -- http header server: Apache http hlavičke server: Apache - -- Remove Server: Apache from headers Odstrániť Server: Apache z hlavičky - -- ServerTokens Product Only Iba ServerTokens Product - -- absence ServerTokens apache2.conf absence ServerTokens apache2.conf - -- apache servertokens off apache servertokens vypnutie - -- disable put apache zakázať uvedenie apache - -- header server modify Hlavička servera upraviť - -- how to disable apache headers Ako vypnúť apache záhlavie - -- +apache +ServerToken + Apache + ServerToken - -- apache custom server signature apache server vlastný podpis - -- apache2 disable server header Apache 2 server vypnúť záhlavie - -- apache conf ServerToken apache conf ServerToken - -- apache ServerTokens httpd.conf ServerTokens apache httpd.conf - -- appache ServerSignature mail appache ServerSignature mail - -- appache ServerTokens appache ServerTokens - -- disable server signature vypnúť server podpis - -- how to eliminate apache version on error page ako eliminovať apache verzie na chybovú stránku - -- how to disable apache version info Ako vypnúť apache verzia info - -- php server signature php server podpis - -- server signature off in apache server podpis vypnutie v apache - -- servertokens prod servertokens prod - -- ServerTokens httpd.conf ServerTokens httpd.conf - -- ServerSignature httpd.conf ServerSignature httpd.conf - -- ServerTokens custom ServerTokens vlastné - -- apache footer security apache zápätím zabezpečenia - -- hide ServerTokens apache skryť ServerTokens apache - -- how to modify apache ServerTokens in ubuntu ako zmeniť apache ServerTokens v ubuntu - -- servertokens apache2 servertokens Apache 2 - --