We help IT Professionals succeed at work.

how do I stop the banner

I have a web server that I would like to stop the information coming from the banner. Basically stop the server from displaying the name, make, version, and services running on the device. Banner Image from Trace
Comment
Watch Question

Top Expert 2011

Commented:
Top Expert 2011

Commented:
The short answer is add the following lines to httpd.conf
ServerSignature Off
ServerTokens Prod

Open in new window

Gerwin Jansen, EE MVETopic Advisor
CERTIFIED EXPERT
Most Valuable Expert 2016

Commented:
You have Apache, edit your httpd.conf and add or edit these lines:

ServerTokens Prod
ServerSignature Off

Author

Commented:
I have searched the servers drive for all files called httpd or anything with *.conf and I have not one file matching these terms. Does the file have a optional name?
Gerwin Jansen, EE MVETopic Advisor
CERTIFIED EXPERT
Most Valuable Expert 2016

Commented:
Hmm, OK. Do you know what webserver you have? Looks like Apache to me.

A possible locations is /usr/local/apache2/conf/httpd.conf

Author

Commented:
No such directories on this server. It is an Apache Tomcat Coyote. The root directory for the software starts at "Apache Software Foundation"

Author

Commented:
Then goes into Tomcat 5.0 for the next folder. Once in the Tomcat 5.0 I have the following folders. bin, Certs, common, conf, logs, server, shared, temp, webapps, and work.
Gerwin Jansen, EE MVETopic Advisor
CERTIFIED EXPERT
Most Valuable Expert 2016

Commented:
You cannot do this in Tomcat 5.0 (5.5.x and 6.0.x have a connector property (server) that you can set).

For Tomcat 5.0, you have to do this:

 - find $CATALINA_HOME/server/lib/catalina.jar
 - extract the contents of the jar to a temporary directory
 - find org/apache/catalina/util/ServerInfo.properties
 - open this file
 - edit the server.info property
 - save the file
 - rebuild the jar
 - replace the original catalina.jar with your modified version
 - restart Tomcat

Author

Commented:
I found the catalina.jar file but to extract the contents of a jar I have not a clue. I downloaded Eclipse from the web after peroforming a search for how to extract a jar but I am lost on how to use this software. I have no background in this type of software platform and have never touched any type of programming. I understand what you are telling me to do but have not a clue how to use the tools nor how to acquire the correct tools to accomplish my goal. Do you have any links to locations that would offer the tools and knowledge?
Topic Advisor
CERTIFIED EXPERT
Most Valuable Expert 2016
Commented:
Backup your original catalina.jar before you start.

The catalina.jar file can be opened with a zip/unzip application, for example WinRar or 7-Zip. Just open the .jar file, browse to the path where the ServerInfo.properties file is, drag that file to the desktop and edit it. Drag the edited file back to the zip/unzip application so the .jar file gets updated.

Copy the updated .jar file back to where you found it and restart Tomcat.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.