Click to See Complete Forum and Search --> : Apache fails when proxying with two virtual hosts same time


trepidity
09-26-2007, 05:06 PM
I am trying to setup two name based virtual hosts in Apache2. Each of them proxies to my JBoss server running on the localhost:8080/appname/. There are two directories/applications each being "http://localhost:8080/appname1/" and "http://localhost:8080/appname2/" for example. Jboss runs them fine, and they both are accesible from the server using localhost. If I use a reverse proxy on each. If I only include one of the two virtualhost.conf files(there is one for each domain/app/etc) the particular one I include works perfect. Doesn't matter which one, which leads me to believe the .conf file is fine. However if I go to include both at the same time, Apache fails to start with no error message anywhere. Anyone have an idea what to do about this? thx ahead of time

trepidity
09-27-2007, 12:05 AM
OK still working on it. So far I tried abandoning the JBoss package and simplifying down to just tomcat. Didn't change a thing. I need these two domains to be hosted for the time being off of this server, both contain JSP. Unfortunately I also have other sites on this server that run in apache, so I can't host with just tomcat and solve it that way. Any notions? Obviously I can't run tomcat on port 80 or my public IP bc apache runs on that, so I am trying to proxy through tomcat at localhost:8080. All ideas greatly appreciated.