Jump to content
We've recently updated our Privacy Statement, available here ×
  • Hiding the Apache Tomcat version in the case of an HTTP 404 error page


    Prasad B
    • Version: v8 Product: JasperReports® Server

     

    Problem:
    When a 404 error occurs on Tomcat, it is disclosing the Tomcat version. How can users hide it?

    Solution:
    Please perform the below steps to hide the tomcat version in case of 404 error:
         
        1. Stop the Tomcat Server.

        2. Navigate to the Tomcat/lib folder.
        3. Within the lib folder, please create the nested subfolders as org --> apache --> catalina --> util
        4. Within the Tomcat/lib/org/apache/catalina/util folder, create a file named 'ServerInfo.properties'.
        5. Edit this new file and add the below line:

            server.info=Application Server

        6. Save the file and restart Tomcat.

    Once you restarted the server, instead of the Tomcat version, you could see the message as 'Application Server'. Please refer to the attached screenshot for more details.

    Ref Case: #02205570


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...