bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / docs / generic_howto / printer / quick.html
1 <html><head><META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>The Apache Tomcat Connector - Generic HowTo - Quick Start HowTo</title><meta name="author" value="Henri Gomez"><meta name="email" value="hgomez@apache.org"><link href="../../style.css" type="text/css" rel="stylesheet"></head><body bgcolor="#ffffff" text="#000000" link="#525D76" alink="#525D76" vlink="#525D76"><table border="0" width="100%" cellspacing="4"><!--PAGE HEADER--><tr><td colspan="2"><!--TOMCAT LOGO--><a href="http://tomcat.apache.org/"><img src="../../images/tomcat.gif" align="left" alt="Apache Tomcat" border="0"></a><!--APACHE LOGO--><a href="http://www.apache.org/"><img src="http://www.apache.org/images/asf-logo.gif" align="right" alt="Apache Logo" border="0"></a></td></tr><!--HEADER SEPARATOR--><tr><td colspan="2"><hr noshade size="1"></td></tr><tr><!--RIGHT SIDE MAIN BODY--><td width="80%" valign="top" align="left"><table border="0" width="100%" cellspacing="4"><tr><td align="left" valign="top"><h1>The Apache Tomcat Connector - Generic HowTo</h1><h2>Quick Start HowTo</h2></td><td align="right" valign="top" nowrap="true"><img src="../../images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr></table><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Introduction"><strong>Introduction</strong></a></font></td></tr><tr><td><blockquote>
2 <p>
3   This document describes the configuration files used by JK on the
4   Web Server side for the 'impatient':
5     <ul>
6     <li>
7     <b>workers.properties</b> is a mandatory file used by the webserver and which
8     is the same for all JK implementations (Apache/IIS/NES).
9     </li>
10     <li>
11     <b>web server</b> add-ons to be set on the webserver side. 
12     </li>
13     </ul>
14 </p>
15 <p>        
16   We'll give here minimum servers configuration and an example <b>workers.properties</b> 
17   to be able to install and check quickly your configuration.
18 </p>
19 </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Minimum workers.properties"><strong>Minimum workers.properties</strong></a></font></td></tr><tr><td><blockquote>
20 <p>
21     Here is a minimum <b>workers.properties</b>, using just ajp13 to connect your Apache webserver
22     to the Tomcat engine, complete documentation is available in <a href="workers.html">Workers HowTo</a>. 
23 </p>
24 <p>
25 <div class="example"><pre>
26
27   # Define 1 real worker using ajp13
28   worker.list=worker1
29   # Set properties for worker1 (ajp13)
30   worker.worker1.type=ajp13
31   worker.worker1.host=localhost
32   worker.worker1.port=8009
33
34 </pre></div>
35 </p>
36 </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Minimum Apache web server configuration"><strong>Minimum Apache web server configuration</strong></a></font></td></tr><tr><td><blockquote>
37 <p>
38    Here is a minimum information about Apache configuration, a 
39    more complete <a href="../../webserver_howto/apache.html">separate HowTo for Apache</a> is available.
40 </p>
41 <p>
42   You should first have <b>mod_jk.so</b> (unix) or <b>mod_jk.dll</b> (Windows) installed
43   in your Apache module directory (see your Apache documentation to locate it).
44 </p>
45 <p>
46   Usual locations for modules directory on Unix:
47   <ul>
48   <li>/usr/lib/apache/</li>
49   <li>/usr/lib/apache2/</li>
50   <li>/usr/local/apache/libexec/</li>
51   </ul>
52 </p>
53 <p>
54   Usual locations for modules directory on Windows :
55   <ul>
56   <li>C:\Program Files\Apache Group\Apache\modules\</li>
57   <li>C:\Program Files\Apache Group\Apache2\modules\</li>
58   </ul>
59 </p>
60 <p>
61   You'll find a link to prebuilt binaries
62         <a href="http://tomcat.apache.org/download-connectors.cgi/">here</a>
63 </p>
64 <p>
65     Here is the minimum which should be set in <b>httpd.conf</b> directly or 
66     included from another file:
67 </p>    
68 <p>
69   Usual locations for configuration directory on Unix:
70   <ul>
71   <li>/etc/httpd/conf/</li>
72   <li>/etc/httpd2/conf/</li>
73   <li>/usr/local/apache/conf/</li>
74   </ul>
75 </p>
76 <p>
77   Usual locations for configuration directory on Windows :
78   <ul>
79   <li>C:\Program Files\Apache Group\Apache\conf\</li>
80   <li>C:\Program Files\Apache Group\Apache2\conf\</li>
81   </ul>
82 </p>
83 <p>
84 <div class="example"><pre>
85
86   # Load mod_jk module
87   # Update this path to match your modules location
88   LoadModule    jk_module  libexec/mod_jk.so
89   # Declare the module for &lt;IfModule directive&gt; (remove this line on Apache 2.x)
90   AddModule     mod_jk.c
91   # Where to find workers.properties
92   # Update this path to match your conf directory location (put workers.properties next to httpd.conf)
93   JkWorkersFile /etc/httpd/conf/workers.properties
94   # Where to put jk shared memory
95   # Update this path to match your local state directory or logs directory
96   JkShmFile     /var/log/httpd/mod_jk.shm
97   # Where to put jk logs
98   # Update this path to match your logs directory location (put mod_jk.log next to access_log)
99   JkLogFile     /var/log/httpd/mod_jk.log
100   # Set the jk log level [debug/error/info]
101   JkLogLevel    info
102   # Select the timestamp log format
103   JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
104   # Send everything for context /examples to worker named worker1 (ajp13)
105   JkMount  /examples/* worker1
106
107 </pre></div>
108 </p>
109 </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Minimum IIS web server configuration"><strong>Minimum IIS web server configuration</strong></a></font></td></tr><tr><td><blockquote>
110 <p>
111   A separate <a href="../../webserver_howto/iis.html">HowTo for the IIS web server</a> is available.
112 </p>
113 <p class="todo">
114       This paragraph has not been written yet, but <b>you</b> can contribute to it.
115       </p>
116 </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Minimum NES/iPlanet/Sun web server configuration"><strong>Minimum NES/iPlanet/Sun web server configuration</strong></a></font></td></tr><tr><td><blockquote>
117 <p>
118   A separate <a href="../../webserver_howto/nes.html">HowTo for the Netscape/iPlanet/Sun web server</a> is available.
119 <p class="todo">
120       This paragraph has not been written yet, but <b>you</b> can contribute to it.
121       </p>
122 </p>
123 </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Test your configuration"><strong>Test your configuration</strong></a></font></td></tr><tr><td><blockquote>
124 <p>
125   (Re)start the web server and browse to the <a href="http://localhost/examples/">http://localhost/examples/</a>
126 </p>
127
128 </blockquote></td></tr></table></td></tr><!--FOOTER SEPARATOR--><tr><td colspan="2"><hr noshade size="1"></td></tr><!--PAGE FOOTER--><tr><td colspan="2"><div align="center"><font color="#525D76" size="-1"><em>
129         Copyright &copy; 1999-2011, Apache Software Foundation
130         </em></font></div></td></tr></table></body></html>