Click to See Complete Forum and Search --> : Links to Tomcat know-it-alls
Albatross
January 22nd, 2003, 02:20 PM
I've got Apache and Tomcat working together on a Webserver on a LAN and
I am looking for someone to look at my configuration files and
tell me if I'm doing it fully correct.
For example : all the Tomcat contexts are stated in Apache's conf file as "Virtual Hosts".
Right? Wrong? or just barely acceptable?
Any known forums where this kind of topic is discussed?:rolleyes:
npaim
January 22nd, 2003, 02:47 PM
Hi.
You could try here. I think it's a good place to start.
http://mikal.org/interests/java/tomcat/
Regards.
saddysans
January 22nd, 2003, 10:25 PM
just to improve performance i also used 5 tomcats with apache server using mod_jk, following links will probably help u how to setup connection between two
http://raibledesigns.com/tomcat/index.html
saddysan
Albatross
January 23rd, 2003, 04:23 AM
Saddysans, you use 5 Tomcats with Apache at once !!!!! :eek:
Well, it sounds like you have some experience in the matter.
What do you say to my main question :
in configuring Apache with Tomcat must the contexts under Tomcat *always* be set as 'Virtual Hosts'?
saddysans
January 23rd, 2003, 11:15 AM
why u want to set virtual host for tomcats. the reason why i used 5 tomcats was for loadbalancing. for that i used channelsockets.
Albatross
January 23rd, 2003, 12:01 PM
>>why u want to set virtual host for tomcats
I use it because it works, but I wonder if there is another way.
Virtual Hosts are described in the web site you suggested to me,
see '6. Configuring Private JVMs' at http://raibledesigns.com/tomcat/index.html
Like you I use the mod_jk.dll but I have never heard of "channel sockets".
can you describe this channelsocket method?
Apache, the web server holds the static web pages. Tomcat, the servlet container, holds the webapps. The only way for the user to reach the webapps is to have them defined in the Apache conf as Virtual Hosts.
If not how are they linked to the webserver?
Do your Tomcats also work as webservers at 8080?
saddysans
January 26th, 2003, 06:52 AM
the use of virtual host depends upon ur requirement. I used Apache-Tomcat combination because of load-balancing(i.e. each tomcat was containing same data) also none of the tomcat was listening on port 8080. In fact none of them were listening to http request. Apache serever was listening on port 80 for http request and that was the only entry point. Apache server was having list of all the tomcats which i defined in worker.properties. Apache server was communicating tomcats using channel sockets through AJP1.3 protocol.
But If you don't need load-balancing, and you are interested in configuring Apache/Tomcat for private Tomcat instances, u use virtual host. In this case each tomcat contains different data.
saddysan
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.