0 Replies Latest reply on Aug 2, 2019 4:57 AM by sumanthm

    How to add the http headers for invalid context in JBoss AS 6.1

    sumanthm

      Hi All,

       

       

      we are using Jboss AS 6.0. This approach was working fine for the valid context-root of Jboss.

       

       

      Say, I have the context-root for Jboss configured as '/abc'. Headers are being returned for all the GET requests made for the URL http://ip:port/abc/

       

       

      Now, am expecting these configured headers to be returned for '/' context-root

       

       

      For example, if I do a curl -i http://ip:port/ , I will get a response as shown below without the headers.

       

       

      HTTP/1.1 404 Not Found

      Server: Apache-Coyote/1.1

      X-Powered-By: Servlet/3.0; JBossAS-6

      Content-Length: 0

      Date: Wed, 31 Jul 2019 06:49:06 GMT

       

       

      How to add the headers for these requests too?

       

       

       

       

      Thanks in advance.