You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ljuba Veselinova <lj...@ling.su.se> on 2007/12/17 18:26:28 UTC
Tomcat in conflict with Virtual Host directive in Apache?
Hi,
I have finally gotten Tomcat 5.5.17 to work as a windows service on a
windows xp machine; it communicates with Apache 2.0.58 but only if if
the ServerName in mod_jk.conf, httpd.conf and in workers.properties is
the same as the computer name listed in system properties. Morever,
Tomcat appears not to like the directive VirtuaHost to be on in
httpd.conf.
This is however, problematic because I am sharing the server with
another person and his stuff is programmed to work with with an
different (alias) computer name and also with another root path. We
tried to put both the different name and the diffferent root path in
the VirtualHost directive in httpd.conf but then all communication
between Tomcat and Apache appears to be gone, that is the
servlet-examples/servlet/HelloWorldExample is not found if called by
any machine name (both the alias and the system name); it still works
if called by localhost:8080. If we turn off the VirtualHost directive,
then Tomcat and Apache communicate with each other; but when
VirtualHost is turned off, Rickard's stuff does not work.
Any suggestions to documentation or ways to solve this will be greatly
appreciated.
Thanks,
Ljuba
--
===========================================================================
Ljuba Veselinova
Dept of Linguistics Email: ljuba@ling.su.se
Stockholm University Phone: +46-8-16 2332
106 91 Stockholm Fax : +46-8-15 5389
Sweden URL : http://www.ling.su.se/staff/ljuba/
"We learn by going where we want to go."
Julia Cameron
============================================================================
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat in conflict with Virtual Host directive in Apache?
Posted by Rainer Jung <ra...@kippdata.de>.
Ljuba Veselinova schrieb:
> Hi,
>
> I have finally gotten Tomcat 5.5.17 to work as a windows service on a
> windows xp machine; it communicates with Apache 2.0.58 but only if if
> the ServerName in mod_jk.conf, httpd.conf and in workers.properties is
> the same as the computer name listed in system properties. Morever,
> Tomcat appears not to like the directive VirtuaHost to be on in
> httpd.conf.
Concerning VirtualHost: JkMount directives by default are not inherited
from the global server to virtual hosts. So if you put your JkMount into
the global server, your VirtualHost will do no forwarding. Either
include them into the relevant VirtualHost, or use JkMountCopy On inside
the VirtualHost.
See also
http://tomcat.apache.org/connectors-doc/reference/apache.html
HTH.
Regards,
Rainer
>
> This is however, problematic because I am sharing the server with
> another person and his stuff is programmed to work with with an
> different (alias) computer name and also with another root path. We
> tried to put both the different name and the diffferent root path in
> the VirtualHost directive in httpd.conf but then all communication
> between Tomcat and Apache appears to be gone, that is the
> servlet-examples/servlet/HelloWorldExample is not found if called by
> any machine name (both the alias and the system name); it still works
> if called by localhost:8080. If we turn off the VirtualHost directive,
> then Tomcat and Apache communicate with each other; but when
> VirtualHost is turned off, Rickard's stuff does not work.
>
> Any suggestions to documentation or ways to solve this will be greatly
> appreciated.
>
> Thanks,
> Ljuba
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org