2 Replies Latest reply: Nov 17, 2012 12:45 AM by Mehabub Sheikh RSS

    Apex 4.2 with Listener on Glassfish behind Apache

    Mehabub Sheikh
      Hi,

      Following is my environment
      OS- Windows 2008 Server
      APEX Version - 4.2
      Database - 11GXE
      Web Tier - APEX Listener 1.4 with Glassfish 3.1.2 Server Open Source Edition

      Glassfish HTTP is installed on port 8080
      I have configured apache virtual host
      <VirtualHost *:80>
      ServerName www.mehabubsheikh.com
      ServerAlias www.mehabubsheikh.com
      DocumentRoot "C:/server/Apache/htdocs"
      ProxyPreserveHost on
      RewriteEngine on
      RewriteRule ^/tac$ /apex/f?p=130:1 [R=301,L]
      </VirtualHost>
      ProxyPass        /apex/ http://localhost:8080/apex/ 
      ProxyPassReverse /apex/ http://localhost:8080/apex/
      So when I type http://www.mehabubsheikh.com/tac it rightly takes me to application 130. But if I type http://www.mehabubsheikh.com it takes me to http://www.mehabubsheikh.com/apex/f?p=4550:1

      I basically want that if I type http://www.mehabubsheikh.com+ it should take me to application http://www.mehabubsheikh.com/apex/f?p=130:1+.
      In order to do this if I changed virtual host to the following but still it takes me to workspace login page http://www.mehabubsheikh.com+ it takes me to http://www.mehabubsheikh.com/apex/f?p=4550:1
      <VirtualHost *:80>
      ServerName www.mehabubsheikh.com
      ServerAlias www.mehabubsheikh.com
      DocumentRoot "C:/server/Apache/htdocs"
      ProxyPreserveHost on
      RewriteEngine on
      RewriteRule ^/$ /apex/f?p=130:1 [R=301,L]
      </VirtualHost>
      Am I doing anything wrong?

      Thanks,
      Mehabub