go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Install Apache mod_jk
 
Subject: Install Apache mod_jk
Author: Linux
In response to: Integrate Apache httpd with Tomcat on AWS EC2 instance
Posted on: 10/21/2011 01:12:07 AM

                        -------              --------
   www.exmaple1.com ---|       |            |        |
                       |       |  mod_jk    |        |
                       | httpd |------------| tomcat |
   www.exmaple2.com ---|       |            |        |
                       |_______|            |________|
                           ^                    ^
                           |                    |
                           |                    |

                        static contents    dynamical contents      


1. Install httpd-devel
# yum install httpd-devel



2. Install all c/c++ complier and builder
# yum install gcc gcc-c++ libtool libxml2-devel


3. Download, make and install mod_jk
$ cd /home/ec2-user
$ mkdir mod_jk
$ cd mod_jk
$ curl http://apache.osuosl.org//tomcat/tomcat-connectors/jk/
tomcat-connectors-1.2.32-src.tar.gz > tomcat-connectors-1.2.32-src.tar.gz
$ tar xzf tomcat-connectors-1.2.32-src.tar.gz
$ cd tomcat-connectors-1.2.32-src/native
$ ./configure --with-apxs=/usr/sbin/apxs
$ make
$ sudo make install



 

> On 10/21/2011 12:51:40 AM Linux wrote:


Now that we have Apache httpd and Tomcat, it's time to put them work together. The whole point here is to:

1) Apache httpd to handle multiple websites.
2) Apache httpd to handle static contents.
3) Tomcat server to handle dynamical contents.


                        -------              --------
   www.exmaple1.com ---|       |            |        |
                       |       |            |        |
                       | httpd |------------| tomcat |
   www.exmaple2.com ---|       |            |        |
                       |_______|            |________|
                           ^                    ^
                           |                    |
                           |                    |

                        static contents    dynamical contents      








References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.