Hi John,
As it turns out, what got me unstuck was to add a Host and Context to
server.xml, as you and Lajos both recommended to me.
But it seems I can use
NameVirtualHost *
VirtualHost *
...
/VirtualHost
or
NameVirtualHost 127.0.0.1
VirtualHost 127.0.0.1
/VirtualHost
To be honest, I
Hi Lajos,
Thank you so much for this advice. It helped. I was not aware that I had to
set the host/context in server.xml, if I was defining VirtualHosts in apache.
Here is another article which helped as well:
http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html
Best,
Heather Buch
Hello,
My NameVirtualHost fails when I try to set the JkMount directives.
I am using
httpd-2.0.43
jakarta-tomcat-4.1.12
(I am also using jakarta-struts-1.0.2, but this might not be so relevant to my
problem)
Here is my setup (I describe the problem at the end using the specific names
that
If you want multiple name-based virtual hosts with JK, I have found that
you need to do the following:
- make sure NameVirtualHost is enabled and set to *
- make sure all VirtualHost containers look like this:
VirtualHost *
ServerName your.host.name
...
JkMount /*.jsp ajp13
/VirtualHost
-
Hi Heather -
I didn't see a reply to your post, so here goes.
The JkMounts you have will be handled by the Context that has path=.
If you didn't edit server.xml, that means it will go to the ROOT
directory. If you want oecon-stprg to be the default Context, edit
it's path in server.xml and