CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2000
    Location
    Germany
    Posts
    122

    Links to Tomcat know-it-alls

    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?

  2. #2
    Join Date
    Jan 2003
    Location
    Porto Alegre - Brasil
    Posts
    6
    Hi.

    You could try here. I think it's a good place to start.

    http://mikal.org/interests/java/tomcat/

    Regards.
    Nilo
    Porto Alegre - RS - Brasil

  3. #3
    Join Date
    Mar 2002
    Posts
    132
    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

  4. #4
    Join Date
    Apr 2000
    Location
    Germany
    Posts
    122
    Saddysans, you use 5 Tomcats with Apache at once !!!!!
    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'?

  5. #5
    Join Date
    Mar 2002
    Posts
    132
    why u want to set virtual host for tomcats. the reason why i used 5 tomcats was for loadbalancing. for that i used channelsockets.

  6. #6
    Join Date
    Apr 2000
    Location
    Germany
    Posts
    122
    >>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?

  7. #7
    Join Date
    Mar 2002
    Posts
    132
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured