{"id":11146,"date":"2022-07-06T08:47:34","date_gmt":"2022-07-06T14:47:34","guid":{"rendered":"https:\/\/www.mrc-productivity.com\/techblog\/?p=11146"},"modified":"2023-08-09T15:15:18","modified_gmt":"2023-08-09T21:15:18","slug":"hiding-tomcat-version-information","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/techblog\/?ht_kb=hiding-tomcat-version-information","title":{"rendered":"Hiding Tomcat Version Information"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Certain customers may want to hide which version of Tomcat they are using, either for privacy or security reasons. This techblog post details how to do so. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation<\/h2>\n\n\n\n<div class=\"wp-block-ht-blocks-list heroic-styled-list\" id=\"heroic-styled-list-\"><ol class=\"fa-ul\"><li>Go to your tomcat\/lib folder. Within this folder, make several subfolders: <strong>org\/apache\/catalina\/uti<\/strong>l<\/li><li>Within the \/tomcat\/lib\/org\/apache\/catalina\/util folder, create a file named:<strong> ServerInfo.properties<\/strong><\/li><li>Edit this new file and add this line to it: <code>server.info=Application Server<\/code><\/li><li>Save and restart Tomcat.<\/li><\/ol><style>#heroic-styled-list- li:before{\n\t\t\t\t\t\t   background:#000000;\n\t\t\t\t\t\t   border-radius: 0;\n\t\t\t\t\t\t   }<\/style><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Now instead of seeing this error:<br><img decoding=\"async\" src=\"\/techblog\/images\/error1.png\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The error will now look like this:<br><img decoding=\"async\" src=\"\/techblog\/images\/error2.png\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Certain customers may want to hide which version of Tomcat they are using, either for privacy or security reasons. This techblog post details how to do so. Implementation Now instead of seeing this error: The error will now look like this:<\/p>\n","protected":false},"author":3,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[152],"ht-kb-tag":[],"class_list":["post-11146","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-administration"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/11146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11146"}],"version-history":[{"count":2,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/11146\/revisions"}],"predecessor-version":[{"id":12082,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/11146\/revisions\/12082"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11146"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=11146"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=11146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}