•
Modificar el Server header de Tomcat
En tomcat, por defecto, revelamos que estamos usando dicho servidor de aplicaciones mediante el server header:
# curl -I localhost:8080 HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Accept-Ranges: bytes ETag: W/"7662-1390862545000" Last-Modified: Mon, 27 Jan 2014 22:42:25 GMT Content-Type: text/html Content-Length: 7662 Date: Mon, 06 Apr 2014 08:10:29 GMT
Mediante la directiva server en el Connector (server.xml) podemos modificar el server header para definir cualquier string:
<Connector port="8080" protocol="HTTP/1.1" server="systemadmin.es" connectionTimeout="20000" redirectPort="8443" />
Una vez reiniciado el tomcat, podremos ver que el header server se ha modificado con nuestra cadena:
# curl -I localhost:8080 HTTP/1.1 200 OK Accept-Ranges: bytes ETag: W/"7662-1390862545000" Last-Modified: Mon, 27 Jan 2014 22:42:25 GMT Content-Type: text/html Content-Length: 7662 Date: Mon, 07 Apr 2014 08:13:10 GMT Server: systemadmin.es
Deja un comentario: