facebook

hide web server information …

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #263327 Reply

    ehudt
    Member

    Hi all,

    I am running Tomcat 5.0.28 in production environment.

    The application resources are well hidden from the users, by placing them under /WEB-INF.

    However, when a user is trying to access an un authorised URL, Tomcat is sending a response page (quote – “The requested resource (/img/) is not available”), but unfortunatly it reveals the server information (Tomcat 5.0.28).

    Is there a way to make Tomcat not respond to such requests at all, so I dont reveal the server information ?

    Thanks !

    #263393 Reply

    Riyad Kalla
    Member

    Those are the standard HTTP request error pages, like Error 300, 400, 404, etc… there is a way to provide your own custom error pages and tell Tomcat to use those instead… I forgot where it is exactly but double check the Tomcat docs. That way you can serve back your own themed pages that only show the information you want.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: hide web server information …

You must be logged in to post in the forum log in