Hi,
we'd like to set up a virtual host for one of our J2EE apps. Now we have a context (/istore) under which our application can be accessed. The URL of our app now is: http://xxx.yyy.com/istore/ However we'd like the following URL to work: http://virtual.host.com/ So we'd set up our DNS server to point to the machine running JBoss with our istore, and the web server should intercept a reqest for "vhos.com" and realize that this reqest can be served from a given directory. Ok. Sorry for the lengthy introduction, now I can tell you where my problem roots. When JBoss deploys istore.ear, it unpacks the webtier to a directory named: $JBOSS_HOME/tmp/deploy/Default/istore.war/web1004. It seems that JBoss uses the same directory for subsequent runs, so until you don't refresh your application, this directory remains used. I tried to add a <host> tag in the server.xml configuration file in $TOMCAT_HOME/conf. I tried to reference this directory but it didn't work. We even separated the web tier from the EAR, creating a separate WAR file. I deployed the WAR under tomcat (putting the WAR file into its webapps folder), and thus I was able to add a <host> tag, pointing to webapps/istore (this is where tomcat normally deploys). I started tomcat (with the webtier of istore in it) and JBoss (running now merely the EJBs of istore). The idea worked... But when the two layers began talking to each other, I got a bit sad. Everything was deadly slow. Circulus vitiosus... When I'm able to create the virtual host I need, it's damn slow when it's fast, I cannot create the vhost. Now I am at a complete loss as how to proceed... Thanks in advance, János PS: 1) I wouldn't use Jetty for this, 'cause Tomcat works well for us, and when I tried to port our app to Jetty, almost everything broke down that worked before. 2) when I set up a virtual host, say 127.0.0.10 for istore (when the webtier was served separately by tomcat, not by the embeddedtomcat) and I pointed my browser to this address, and got the response page, the address was rewritten to "127.0.0.10/index.html". It would also be good to disable this. You know it's ugly to see www.xxx.com/index.html in the address bar. (Maybe it's not a real problem in a real environment, I don't know) _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user