HTML cleanup & typo fixes in tomcat-apache-howto.html [salt:tarball/jakarta-tomcat-3.2.1/doc] pepper% diff -u tomcat-apache-howto.html tomcat-apache-howto.html.patch --- tomcat-apache-howto.html Tue Dec 12 16:36:55 2000 +++ tomcat-apache-howto.html.patch Tue Jan 30 11:50:57 2001 @@ -1,3 +1,4 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <!-- $Id: tomcat-apache-howto.html,v 1.2.2.2 2000/10/05 06:37:52 larryi Exp $ --> @@ -141,19 +142,22 @@ <h4><a name="work_together">How will they work together?</a></h4> <blockquote> - <p> In a nutshell a web server is waiting for requests. When these requests arrive the server does whatever is needed to + <p> In a nutshell a web server is waiting for requests. When + these requests arrive the server does whatever is needed to serve the requests by providing the necessary content. Adding Tomcat to the mix may somewhat change this behavior. Now the web server needs to perform the following: <ul> <li> Before the first request can be served, Apache needs to load a web - server adapter (how Tomcat will communicate w/Apache) library and initialize it. </li> - <li> When a request arrives, Apache needs to check and see if it belongs to a servlet, if so it needs to let the adapter + server adapter library (so Tomcat can communicate with Apache) + and initialize it. </li> + <li> When a request arrives, Apache needs to check and see if it + belongs to a servlet; if so it needs to let the adapter take the request and handle it.</li> </ul> <p>We'd like Apache to handle our static content, such as - images and html documents, and to forward all requests for + images and HTML documents, and forward all requests for dynamic content to Tomcat. More specifically, we need answers to the following questions:</p> <blockquote> @@ -227,14 +231,18 @@ </p> <blockquote> - <p class="code"> <servlet><br> - <servlet-name>SlifkaWorld</servlet-name><br> - <servlet-class>foo.bar.baz.SomeClass</servlet-class><br> - <init-param><br> - <param-name>someParameter</param-name><br> - <param-value>A value</param-value><br> - </init-param><br> - </servlet> + <p class="code"> <servlet><br> + + <servlet-name>SlifkaWorld</servlet-name><br> + + <servlet-class>foo.bar.baz.SomeClass</servlet-class><br> + <init-param><br> + + <param-name>someParameter</param-name><br> + + <param-value>A value</param-value><br> + </init-param><br> + </servlet> </p> </blockquote> @@ -327,13 +335,15 @@ <blockquote> <p class="code"><!-- Apache AJP12 support. This is also used to shut down tomcat. - --><br> - <Connector className="org.apache.tomcat.service.PoolTcpConnector"><br> + --><br> + <Connector + className="org.apache.tomcat.service.PoolTcpConnector"><br> <Parameter name="handler"<br> - value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/><br> + + +value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/><br> <Parameter name="port"<br> - value="8007"/><br> - </Connector></p> + value="8007"/><br> + </Connector></p> </blockquote> <p>To ensure that it is indeed listening on that port, Telnet to it or @@ -541,7 +551,6 @@ <blockquote> <p>For now, refer to the comments in the mod_jk.conf-auto file and <a href="mod_jk-howto.html">mod_jk HOWTO</a> for details.</p> - </p> </blockquote> <h4><a name="httpd_jserv">tomcat-apache.conf</a> @@ -786,15 +795,15 @@ following snippet from server.xml in our AJP section:</p> <blockquote> <p class="code"><!-- Apache AJP12 support. This is also used to shut down tomcat. - --><br> + --<<br> <Connector className="org.apache.tomcat.service.PoolTcpConnector"><br> <Parameter name="handler" <br> - value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/><br> + value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/><br> <Parameter name="port"<br> - value="8007"/><br> - </Connector></p> + value="8007"/><br> + </Connector></p> </blockquote> <p>The key here is that each port parameter's "value" attribute must have a different value. To keep in sync, let's @@ -1094,13 +1103,13 @@ 8080. If you examine the supplied server.xml file, you'll see the following element:</p> <blockquote> - <p class="code"> <!-- Normal HTTP --><br> + <p class="code"> <!-- Normal HTTP --><br> <Connector className="org.apache.tomcat.service.PoolTcpConnector"><br> <Parameter name="handler" <br> value="org.apache.tomcat.service.http.HttpConnectionHandler"/><br> <Parameter name="port" <br> - value="8080"/><br> - </Connector></p> + value="8080"/><br> + </Connector></p> </blockquote> <p>To disable this, just comment out the entire <Connector> element. Otherwise, just change it to a port that doesn't conflict @@ -1201,28 +1210,25 @@ to Apache/Tomcat</a> </h4> <blockquote> - <p>Tomcat doesn't support JSSI Until someone writes an Interceptor to + <p>Tomcat doesn't support JSSI. Until someone writes an Interceptor to handle them, the easiest way is to convert your .jhtml files to .jsp files. Just replace: </p> - <font SIZE="2"> <blockquote> - <p class="code"><servlet name=myServlet><br> + <p class="code"><font SIZE="2"><servlet name=myServlet><br> <param name=aParam value=aValue><br> - </servlet></p> + </servlet></font></p> </blockquote> - </font> <p>with </p> - <font SIZE="2"> <blockquote> - <p class="code"><jsp:include page="/servlet/myServlet" + <p class="code"><font + SIZE="2"><jsp:include page="/servlet/myServlet" flush="true" ><br> - </font> <font SIZE="2"><jsp:param name="aParam" + <jsp:param name="aParam" value="aValue" /><br> - </jsp:include></p> + </jsp:include></font></p> </blockquote> - </font> </blockquote> <h4><a name="error_rewrite_usedto">mod_rewrite - Used to work fine with Apache/JServ, what gives?</a> @@ -1306,14 +1312,14 @@ off into a separate document and revised by Rob Slifka and Mike Bremford. Contributors, listed in alphabetical order: <ul> - Jonathan Bnayahu<br> - Mike Bremford<br> - Alex Chaffee<br> - Fiona Czuczman<br> - Costin Manolache<br> - Craig R. McClanahan<br> - Rob Slifka<br> - ...the countless many on the tomcat-dev and tomcat-user lists! + <li>Jonathan Bnayahu<br> + <li>Mike Bremford<br> + <li>Alex Chaffee<br> + <li>Fiona Czuczman<br> + <li>Costin Manolache<br> + <li>Craig R. McClanahan<br> + <li>Rob Slifka<br> + <li>...the countless many on the tomcat-dev and tomcat-user lists! </ul> <table width="100%" border="0" cellpadding="10" cellspacing="0"> tomcat-ssl-howto.html: Command not found. [salt:tarball/jakarta-tomcat-3.2.1/doc] pepper% --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]