I am happy that you guys sent reply to me, but anyone here can create
configuration file for me for example which I had mentioned in beginning of
post, then I can understand better, its my weakness but true.
Peter, you should decide what you want, and whether the way in which to do it, is more
important for you than the goal that you want to reach, or vice-versa.
From what I understand, the final result that you want to achieve is that
1) there is only one Tomcat server instance
2) when a client calls up http://client1.company.com/, this ends up being served by the
3) when a client calls up http://client2.company.com/, this ends up being served by the
The easiest and most "natural" way to do this, is by using Virtual Hosts, and have
"client1" and "client2" being in fact the ROOT webapps of each of these virtual hosts.
Like this :
(same IP for both)
Tomcat connectors : listen on the IP address a.b.c.d
Tomcat virtual hosts :
First, the default host (it is already there, nothing to change)
<Host name="localhost" appBase="(tomcat_dir)/webapps" ..>
.. here you host Tomcat's "standard" webapps (just leave them where they are)
Then you add the following 2 Hosts :
<Host name="client1.company.com" appBase="/dir1/webapps" ...>
... here you host the "client1" webapp, renamed to ROOT, as in
<Host name="client2.company.com" appBase="/dir2/webapps" ...>
... here you host the "client2" webapp, renamed to ROOT, as in
This is a still single Tomcat. The fact of using virtual hosts does not mean that there
are more than 1 Tomcat. It is the same single Tomcat serving all 3 above virtual hosts.
It just "changes its personality" depending on how the client gets to it (by
But, in the subject of your message, you say that you do not want virtual hosts.
That's a pity, because any other way of doing what you seem to want to do, is a lot more
complicated, and a lot more complicated still to get right in all cases.
So, once again, *why* do you not want virtual hosts ?
If you do not really care, then I suggest that you start a new message thread, with a
different title where you do not exclude virtual hosts from the start, and just explain
what you want to achieve in the end, without excluding any particular solution right away.
For the rest, apart from the on-line Tomcat documentation, there are also books and
articles available : http://tomcat.apache.org/resources.html.
If what you want is to have someone "spoon feed" a complete configuration to you, that
will work in your case without any effort on your part, then you should consider hiring a
There is also a list here : http://wiki.apache.org/tomcat/SupportAndTraining
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org