0 Replies Latest reply on Jan 9, 2004 4:00 AM by shakim

    JBOSS behind apache proxy

    shakim

      Dear All,

      I have a jboss-based application server (JBoss-2.4.7_Jetty-4.0.4) setup behind apache as proxy server. Fyi : this application is a commercial application i.e. primavera expedition (exponline)

      Let's say xxx.xxx.xxx.xxx:8080 is the ip address (local ip) of the exponline server (jboss hosted on NT) and yyy.yyy.yyy.yyy is the ip address (public ip) of the proxy server (apache 1.3.27 hosted on solaris x86)

      I am using mod_proxy in the apache server with the following rule on httpd.conf

      ProxyPass /exponline http://xxx.xxx.xxx.xxx:8080 /exponline
      ProxyPassReverse /exponline http://xxx.xxx.xxx.xxx:8080 /exponline

      My problem is an internet user can only access the first jsp page of the application i.e. http://yyy.yyy.yyy.yyy/exponline/logon.jsp

      When trying to logon (with name and password), this user is automatically logged out and can not proceed to the next jsp i.e.
      http://yyy.yyy.yyy.yyy/exponline/mainframe.jsp, a pop out (application error specific) shows up saying

      “You are no longer logged on to expedition
      http://xxx.xxx.xxx.xxx:8080/exponline/mainframe.jsp”

      For some strange reason proxy server sets the host header
      as the host:port of the jboss server it has redirected to (xxx.xxx.xxx.xxx:8080) - not the apache server host:port (yyy.yyy.yyy.yyy).

      Fyi: I have several other j2ee application server (weblogic, tomcat etc.) setup successfully behind this proxy server, configured the same way as this jboss-based.

      Any pointers will highly be appreciated.

      Note: I have posted this on other forum, but no feedback, that's why I again post it here