Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header Améliorer Apache Web Server Security: ServerTokens utilisation et de désactiver ServerSignature tête

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. Lorsque Apache HTTPD serveur Web génèrent des pages Web ou des pages d'erreur, d'importantes informations sur la version et les autres modalités mises en œuvre sur le système sont affichés dans le site Web e-têtes du serveur. For example, the information text may be like this: Par exemple, le texte d'information mai être comme ceci:

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) Server PHP/4.3.10-10ubuntu4 à 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. La ligne sur le serveur tête exposer important version et la variante d'informations sur le système d'exploitation Linux et Apache logiciels utilisés sur la machine, indirectement, la possibilité d'exposer les failles de sécurité qui sont en place pour les pirates, ou au moins faire malveillants attaquants plus facile à identifier votre système pour attaque des points disponibles.

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. Pour faire en sorte que Apache HTTP serveur Web ne diffuse pas ce message au monde entier au public et de fixer la mesure du possible problème de sécurité, de modifier ces deux directives ServerTokes et ServerSignature dans le fichier de configuration httpd.conf.

  1. Login as root user or perform a sudo to the web server. Ouverture de session sous l'utilisateur root ou effectuer un sudo pour le serveur web.
  2. Open and edit httpd.conf or apache2.conf (in Apache 2) with vi or other text editor. Ouvrir et éditer httpd.conf ou apache2.conf (dans Apache 2) avec vi ou autre éditeur de texte. 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. La configuration d'Apache normalement situé dans / etc / httpd / conf / ou / etc/apache2 / ou / etc / apache / (pour Apache1.3), selon qui Unix que vous utilisez.
  3. Locate the line with ServerTokens . Localisez la ligne avec ServerTokens. You can perform a search by typing “/ServerTokes” and hit Enter. Vous pouvez effectuer une recherche en tapant "/ ServerTokes" et appuyez sur Entrée.
  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). 1,3 dans Apache, vous aurez probablement à voir une ligne commence par # ServerTokes plein Dans ce cas, retirer ou supprimer le caractère # (en appuyant sur d clé). 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 . Également modifier le plein de devenir Prod (appuyez sur la touche r clé pour remplacer un caractère, ou R pour remplacer les multiples caractères), de sorte que la ligne devient ServerTokens Prod. In Apache 2.0 or 2.2, the line normally does not exist. Dans Apache 2,0 ou 2,2, normalement la ligne n'existe pas. So the search will fail. Ainsi, la recherche échouera. In this case, go to the bottom of config file, and add the new line with the following text. Dans ce cas, allez au fond du fichier de configuration, et ajouter la nouvelle ligne avec le texte suivant. You can add new line by pressing o key. Vous pouvez ajouter de nouvelles en ligne en appuyant sur le touche.

    ServerTokens Prod ServerTokens Prod

  5. Next, search for ServerSignature. Ensuite, des recherches pour ServerSignature. In Apache13, the line should just above the line of ServerTokens. En Apache13, la ligne juste au-dessus de la ligne de 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. Modifier la ligne afin qu'elle ressemble à ceci, et Apache2 qui ne possèdent pas encore de cette ligne, en ajouter de nouvelles.

    ServerSignature Off ServerSignature Off

  6. By now the Apache configuration file should have this two directives set as below: En maintenant le fichier de configuration d'Apache devrait avoir ces deux directives défini comme suit:

    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. La première ligne "ServerSignature Off" Apache instruction de ne pas afficher un bas de ligne traîne sous-serveur généré des documents (messages d'erreur, mod_proxy ftp listes de répertoires, mod_info sortie, et etc) qui affiche le numéro de version de serveur, ServerName de l'hôte virtuel au service, e-mail création, et crée un "mailto:" référence à la ServerAdmin du document de référence.

    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. La deuxième ligne "ServerTokens Prod" configure Apache pour n'y revenir que produit Apache comme serveur dans la tête de réponse très page sur demande, la suppression de système d'exploitation, majeurs et mineurs des informations de version.

  7. Save and close the config file by pressing Shift-Colon, and then type wq keys, and hit Enter. Enregistrez et fermez le fichier de configuration en appuyant sur Shift-Colon, puis tapez les touches wq, et appuyez sur Entrée.
  8. Restart Apache. Redémarrez Apache. Typical command is service httpd restart or /etc/init.d/apache2 restart . Typiques de commande est le service httpd restart ou / etc/init.d/apache2 restart.
  9. Now, you will get only the Apache in the server response header: Maintenant, vous obtiendrez uniquement Apache sur le serveur tête de réponse:

    Server: Apache Serveur: Apache

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANT: Il s'agit d'une machine qui traduit la page est fourni «tel quel», sans garantie. Machine translation may be difficult to understand. La traduction automatique mai être difficile à comprendre. Please refer to S’il vous plaît se référer à original English article l'article original en anglais whenever possible. chaque fois que possible.

Share and contribute or get technical support and help at Partagez et contribuer ou obtenir de l'aide technique et l'aide à My Digital Life Forums Ma vie numérique forums .



Leave a Reply Laisser un commentaire

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> Vous pouvez utiliser ces balises: <a href="" title="fete_christel <abbr title="fete_christel <acronym title="fete_christel <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting S'abonner sans commentaires


Custom Search

New Articles Nouveaux Articles

Incoming Search Terms for the Article Des termes de recherche utilisés pour l'article

servertokens servertokens - -- apache ServerTokens Apache ServerTokens - -- servertokens prod servertokens produits - -- servertokens apache servertokens Apache - -- apache ServerSignature Apache ServerSignature - -- apache remove server header supprimer du serveur Apache-tête - -- apache2 ServerToken apache2 ServerToken - -- apache server signature la signature serveur Apache - -- ServerTokens ServerTokens - -- apache servertoken Apache servertoken - -- apache2 ServerTokens apache2 ServerTokens - -- Apache turn off server signature Apache serveur désactiver la signature - -- apache server tokens jetons serveur Apache - -- ServerSignature ServerTokens ServerSignature ServerTokens - -- custom serversignature apache Apache personnalisé serversignature - -- ServerTokens prod apache2 ServerTokens Prod apache2 - -- disable server header désactiver le serveur de tête - -- serversignature serversignature - -- cpanel servertokens cPanel servertokens - -- turn off ServerTokens désactiver ServerTokens - -- turn off server signature désactiver la signature serveur - -- PROD Apache2 PROD Apache2 - -- servertokens httpd.conf servertokens httpd.conf - -- apache2 disable server info apache2 désactiver serveur d'infos - -- apache modify server header modifier serveur Apache-tête - -- apache serversignature custom Apache serversignature personnalisé - -- apache disable server info désactiver le serveur Apache d'infos - -- httpd.conf ServerTokens Prod httpd.conf ServerTokens Prod - -- httpd.conf ServerTokens httpd.conf ServerTokens - -- ServerTokens custom ServerTokens personnalisé - -- apache ServerTokens ServerSignature Apache ServerTokens ServerSignature - -- apache2 serversignature apache2 serversignature - -- cpanel ServerSignature lost cPanel ServerSignature perdu - -- security ServerSignature ServerSignature sécurité - -- remove apache header supprimer Apache-tête - -- apache 2.0 disable server header Apache 2,0 désactiver-têtes du serveur - -- apache disable headers Apache désactiver têtes - -- apache ServerTokens Off Apache Off ServerTokens - -- remove apache server header supprimer les têtes du serveur Apache - -- apache 2.2 serversignature Apache 2,2 serversignature - -- apache server header - têtes du serveur Apache - -- remove Server header supprimer du serveur tête - -- apache remove header Apache supprimer tête - -- all tous - -- apache change server signature changement serveur Apache signature - -- improve apache 1.3 response améliorer Apache 1,3 réponse - -- apache disable server header désactiver le serveur Apache-tête - -- ServerTokens still displays full header ServerTokens affiche encore en-tête complet - -- Apache ServerTokens remove server header Apache ServerTokens supprimer têtes du serveur - -- server header removal apache - têtes du serveur Apache déménagement - --