tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Lucia" <timlu...@yahoo.com>
Subject RE: Setting up a parallel test environment on the same machine as main server
Date Tue, 14 Feb 2006 12:36:22 GMT
1. Moving the JkMount directive inside a <VirtualHost...> will make it
accesible from only that virtual host.  So, you must repeat common ones,
such as /jkmanager.  I put the mappings (JkMount(s)) right in the virtual
host definition(s) with no trouble at all.

2. The virtual host is determined by the http host header, not by the
connector host name.  This is true for both httpd and tomcat (and any other
web server.)

You can always install Apache httpd + Tomcat on a second machine (or on the
same machine on a separate set of ports), if you are reluctant to try it on
you production host.

HTH,
Tim


-----Original Message-----
From: Alan Chandler [mailto:alan@chandlerfamily.org.uk] 
Sent: Tuesday, February 14, 2006 3:50 AM
To: users@tomcat.apache.org
Subject: Re: Setting up a parallel test environment on the same machine as
main server


On Sunday 12 February 2006 17:07, Alan Chandler wrote:
...
> Unless anyone here can suggest a better way, I would like to move the 
> JkMountFile directive from global scope to virtual host scope and have 
> two separate files urimap files so that I can map different things 
> dependent on which virtual host.
>
> However, since this is a live site I don't want to just conduct the 
> simple experiment to see if will work, so I am asking here if this is 
> OK.

Is there really nobody on this list who can answer this simple question?

...
> However, I don't fully understand the relationship between <service>, 
> <engine> and <host> stanza's in the server.xml file, and until I do, I 
> am reluctant to muck about with it and potentially screw the currently 
> working arrangement.

Specifically, there was some conversation here about it best that if tomcat 
was running on the same box as the web server (which it is in my case) that 
it would be best to make the connection between apache2 and tomcat be via 
localhost.  That being the case, how can I map the SAME servlet name but
from 
a different virtual host (albeit ip based) on apache to DIFFERENT hosts on 
the same tomcat engine.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message