2 Replies Latest reply on Jan 11, 2005 4:46 AM by antenore

    Apache2, Jboss/tomcat, with SSL Front-end MOD_PROXY

    dhartford

      Hey all,
      Trying to use MOD_PROXY with Apache 2.0.52 and Jboss4.0.0.

      Assuming same server (or minor changes if different servers), setting up is pretty easy:

      <VirtualHost *:80>
       ServerName myapp.jboss.com
       ProxyRequests On
       ProxyPass / http://myapp.jboss.com:8080/
       ProxyPassReverse / http://myapp.jboss.com:8080/
      </VirtualHost>
      


      And That's it!

      But, if I wanted to add-in SSL Support on the Apache front-end (and not bother with the SSL with jboss/tomcat), got a problem.

      <VirtualHost *:80>
       Redirect / https://myapp.jboss.com/
      </VirtualHost>
      <VirtualHost *:443>
       ServerName myapp.jboss.com
       DocumentRoot /var/www/html
       ProxyRequests On
       ProxyPass / http://myapp.jboss.com:8080/
       ProxyPassReverse / http://myapp.jboss.com:8080/
       SSLEngine On
       SSLCertificateFile /blah/blah.crt
       SSLCertificateKeyFile /blah/blah.key
      </VirtualHost>


      This does no proxy at all. In fact, it continues to serve content out of /var/www/html as if nothing was being proxied. No SSL-supported front-end apache for Jboss/Tomcat.

      Any ideas please? Has anyone tried to run Jboss in this setup?