Custom Server Header for Tomcat in Debian Etch

Posted on 2007-05-15

If you are using Tomcat to serve pages directly (i.e. not through Apache), it will send as server header of ApacheCoyote/1.0 which I do not like. To change this, go into the /etc/tomcat5.5/server.xml file and in the appropriate tag, add an new attribute:

server="NCSA/1.0a6"

Or whatever name you would like it to send. In the same spot, you can add the

URIEncoding="UTF-8"

Which is necessary for full Unicode support.

Tags: debian etch tomcat