Apache2
De Hack-it.org.
(→Apache 2) |
|||
| Ligne 21 : | Ligne 21 : | ||
[http://www.cgsecurity.org/Articles/apache.html cgsecurity] | [http://www.cgsecurity.org/Articles/apache.html cgsecurity] | ||
| + | |||
| + | ==Cacher la version== | ||
| + | * Voir ce qui est affiché actuellement : | ||
| + | curl -I localhost | ||
| + | * Trouver ou c'est configurable : | ||
| + | grep -ri token /etc/apache2/ | ||
| + | * Editer le fichier qui contient ServerTokens, commenter la ligne actuelle et foutre (ou décommenter) : | ||
| + | ServerTokens Prod | ||
| + | * Relancer Apache | ||
| + | /etc/init.d/apache2 restart | ||
| + | * [http://httpd.apache.org/docs/2.2/mod/core.html#servertokens En savoir plus] | ||
| + | |||
| + | /etc/init.d/apache2 restart | ||
