RE: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-22 Thread David Wynter
Hi, I have read dozens of archived posts on virtualhost. I have distilled my httpd.conf and server.xml back to what seems to be the recommended approach, see below. But now I can see no sites on any URL. I have a suspicous End event threw exception in the catalina.out log, which suggests a

Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-22 Thread John Turner
David Wynter wrote: Hi, It seems that the second VirtualHost I have set up for my second domain name is not paasing the requests through mod_jk to Tomcat. It is not even clear that you can support 2 virtualhosts for different domains with the same IP address and port 80. This is a separate

Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-22 Thread John Turner
Advice: Forget about servlets. Forget about serving all content from a servlet. Too many variables, causing you too much confusion. Take it one step at a time. First: set up Tomcat so that you have 2 virtual hosts. Each virtual host needs a SEPARATE appBase. If BOTH virtual hosts are to

Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-22 Thread John Turner
For grins, I decided to setup an example. Here it is. The server has multiple virtual hosts. There are currently 6 working, this configuration describes how I added a seventh by copying a config from one of the other 6 and changing values as needed. The scenario: One Tomcat instance

Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread John Turner
I think there's some confusion...you only need this in workers.properties: # BEGIN workers.properties worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 .host = location of Tomcat When I first started trying to connect Tomcat and Apache a year ago, I

RE: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread David Wynter
Hi John, Thanks for the reply. I have fixed the workers.properties and related stuff in the httpd.conf you pointed out below. What I want is to see what i see at www.stpenable.com/se/servlet/se/templates/index.vm to be what I see when I hit www.stpenable.com Ditto for www.roamware.co.uk to see

RE: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread David Wynter
Actually I should qualify what I said. I have stpenable as the default Host so you can see www.stpenable.com/se/servlet/se/templates/index.vm but for some reason you cannot see www.roamware.co.uk/rwsite/servlet/rwsite/templates/index.vm which is the second of the VirtualHosts in my conf file.

Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread John Turner
Did you remove the Context entries for some reason? They are critical. Also, in httpd.conf you have: # Static files Alias /rwsite /usr/local/tomcat/webapp1/rwsite and later JkMount /rwsite/servlet/* worker1 JkMount /rwsite/*.vm worker1 Thus, the URLs that Apache would expect would

RE: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread David Wynter
Hi, It seems that the second VirtualHost I have set up for my second domain name is not paasing the requests through mod_jk to Tomcat. It is not even clear that you can support 2 virtualhosts for different domains with the same IP address and port 80. This is a separate problem to the

RE: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread David Wynter
Hi John, Thanks for the pointers. I found a good tutorial on vhosts but using jk2 in the Tomcat 4.1 docs. So it helped a little. I have change to using DocumentRoot, less confusing. I also tried full paths instead of relative. I had removed the Context entries because it meant I could at least