<P ALIGN=CENTER
<FONT SIZE=6>The is personal homepage of user tester .</FONT> </FONT></P>
</BODY>
</HTML>
3.Verify that the
http://<YOUR_WEB_SERVER_IP>/~tester
The following message appears:
The is personal homepage of user tester.
Integrating the Web Server Stack Components
This section describes the commonly used configurations for the Web server stack components.
Configuring the Apache and Tomcat Connector
The following section explains how to use the mod_jk module from the Apache Jakarta Project (AJP) to connect the Apache Web server and the Tomcat Web Container.
The Apache HTTP server uses URL pattern rules, defined in the Apache Web server configuration file, to determine which requests to handle and which to forward. It handles content, such as static HTML pages, images, and CGI scripts. The Tomcat connector (mod_jk) uses the AJP protocol to forward all requests for JSPs, servlets, and web functionality to Tomcat as shown in Figure 9.
Figure 9 Connecting the Apache Web Server and Tomcat Web Container
The following example provides the steps to configure Apache Web server routing requests under the
1.Download the mod_jk module from the Apache Software Foundation (see Table 1 (page 12) for the correct version and website link), and follow the instructions provided to build the mod_jk.so shared library. If necessary, copy the mod_jk.so file into the appropriate directory as follows:
/usr/lib64/apache2/modules
2.Edit the Apache Web server configuration
#Load mod_jk
LoadModule jk_module /usr/lib64/apache2/mod_jk.so #Configure mod_jk
JkShmFile /var/log/apache2/memory.shm JkWorkersFile /etc/apache2/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel info
Installing, Configuring, and Managing Web Server Middleware Stack Components 27