9 Replies Latest reply on Jan 13, 2012 9:52 AM by erhard

    mod_cluster & AS7 redirect problem

    erhard

      Hi,

       

      I tried mod_cluster (1.1.0 and 1.1.3) with JBoss AS7 and a simple demo-application. Apache httpd and AS7 are on the same host (namend devjava), my browser is on a different host. When I call http://devjava/demo7/ everything works fine, however when I call http://devjava/demo7 (without trailing slash) I get:

      Firefox can't establish a connection to the server at 127.0.0.1:8080.

       

      The reason is that the browser gets:

       

      HTTP/1.1 302 Moved Temporarily

      Date: Sun, 04 Dec 2011 14:52:27 GMT

      Server: Apache-Coyote/1.1

      Location: http://127.0.0.1:8080/demo7/

      ...

       

      and since the browser doesn't run on the same host as JBoss, it can't access the page. The redirect URL should be rewritten.

      When I try the same with JBoss 4, (with ajp) the browser gets:

       

      HTTP/1.1 302 Moved Temporarily

      Date: Sun, 04 Dec 2011 14:51:21 GMT

      Location: http://devjava/demo7/

      ...

       

      The redirect URL is rewritten correctly.

       

      Do I need to add some rewrite rules to make mod_cluster work correctly with http or do you see some other problem (e.g. wrong AS7 config)?

       

      Regards

      Erhard