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
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
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
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
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
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
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.
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
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
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
10 matches
Mail list logo