http://expert.csdn.net/Expert/topic/1120/1120295.xml?temp=.7951013
来自这里
步骤二: 安装tomcat + apache
2.1:Tomcat
版本:4.01/4.04
安装使用文件:目录拷贝 (4.04的版本需要安装)验证:
http://localhost:8080,如果看到了小猫,并且成功运行jsp/examples下面的例子则证明成功。
2.2:Apache
版本:1.3.22/2.0
安装使用文件:apache_1.3.22-win32-x86.exe  / apache_2.0.40-win32-x86-no_ssl.exe
操作过程:
1) 执行安装验证:
http://localhost:80,看到带有羽毛的apache的主页则成功
2.3:整合tomcat和apache
使用文件:mod_jk.dll,注意此文件在apache1.x和2.x有区别,要选择适合版本的dll
操作过程:
1)  关闭apache和tomcat
2) 拷贝 mod_jk.dll 到 libexec/mod_jk.dll    //此文件需要配合apache的版本,1.x和2.0对应的文件不同(到下面网址下载: http://www.acg-gmbh.de/mod_jk/                     或       http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/linux/i386/  )
    
3) 修改 apache/conf/httpd.conf结尾加
//apache  1.x 版本
LoadModule    jk_module  libexec/mod_jk.dll  
AddModule     mod_jk.c    
JkWorkersFile  c:/tomcat/conf/workers.properties 
JkMount /*.jsp ajp13  
JkMount /servlet/* ajp13  //apache  2.0版本
LoadModule    jk_module  libexec/mod_jk.dll  
<IfModule mod_jk.c>
JKWorkersFile "c:/tomcat/conf/workers.properties "
JKMount  /*.jsp  ajp13
JKMount  /servlet/*  ajp13
</IfModule>
4) 在c:/tomcat/conf目录下建一个worker.properties 
  要修改只有两个地方,一个是workers.tomcat_home, 这是指定Tomcat工作的目录,另外一个是workers.java_home,这是指定Jdk的目录
 
5) 配置TOMCAT核心文件,打开 c:\tomcat\conf\server.xml 
               修改如下: 
               将<!-- Define an AJP 1.3 Connector on port 8009 -->  
                 <!--  
                    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"  
                      port="8009" minProcessors="5" maxProcessors="75"  
                        acceptCount="10" debug="0"/>  
                  -->  
                 的<!--  --> 去掉,这句话熟悉XML的人都知道它是注释,因为默认的Tomcat4是没有启用Apj13的8009的端口即mod_jk所使用
5) 重启tomcat和apache
6) 配置Tomcat
server.xml 中 动态更新
<Context path="" docBase="c:\tomcat\webapps\union"  debug="0" reloadable="true">   <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="8080" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="60000"/>web.xml 中 禁止目录列表
    <init-param>
      <param-name>listings</param-name>
      <param-value>false</param-value>   
    </init-param>
7) 配置Apache
httpd.conf中
Listen  211.211.211.211:80
ServerName  c
DocumentRoot  "c:/tomcat/webapps/union"
<Directory "c:/tomcat/webapps/union">
DirectoryIndex  index.jsp  index.html
    AddDefaultCharset  GB2312验证:
http://localhost:80/examples/,看到tomcat的例子jsp和servlet,运行这些例子可以正常运行则标识成功============================================================================================================================================

解决方案 »

  1.   

    Installing Apache on Windows 98 
    1.  Download Windows Installer V 1.10 at http://download.microsoft.com/download/platformsdk/wininst/1.1/W9X/EN-US/InstMsi.exe 
    2.  Install Windows Installer by double-clicking on the download file 
    3.  Restart your computer when prompted 
    4.  Download Apache 3.1.24 at http://httpd.apache.org/dist/httpd/binaries/win32/apache_1.3.24-win32-no_src-r2.msi  
      
    --------------------------------------------------------------------------------
    The Windows editions of Apache are already built with DSO support. 
    --------------------------------------------------------------------------------
     
    5.  Unpack the distribution by double-clicking on the file and following the instructions 
    6.  Restart your computer when prompted 
    7.  Note the location of your Apache installation (default is c:\Program Files\Apache Group\Apache) - we will refer to this as %APACHE_HOME% 
    Building Apache on Unix 
      
    --------------------------------------------------------------------------------
    Choose this option if you have a need to custom compile Apache. For example, I've done this for SSL support. 
    --------------------------------------------------------------------------------
     
    1.  Download Apache 3.1.24 source at http://httpd.apache.org/dist/httpd/apache_1.3.24.zip 
    2.  Unpack the distribution into a development directory (I used c:\apache_1.3.24) 
    3.  If you want to include EAPI support in your Apache build (like if you are using SSL), edit src\Configuration in the development directory and add the following in the Rules section:  
      Rule EAPI=yes
       
     
     
    4.  Cd into the distribution directory:  
      cd c:\apache_1.3.24\src
       
     
     
    5.  Build Apache  
      nmake /f Makefile.win
       
     
     
    6.  Install Apache:  
      nmake /f Makefile.win INSTDIR="c:\Program File\Apache" installr
       
     
     
      
    --------------------------------------------------------------------------------
    INSTDIR points to where you want Apache installed. 
    --------------------------------------------------------------------------------
     
    7.  Note the location of your Apache installation - we will refer to this as %APACHE_HOME% 
    Installing Tomcat on Windows 
    1.  Download Tomcat 4.0.3 at http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/jakarta-tomcat-4.0.3.zip 
    2.  Install Tomcat by unzipping/untaring the download file and placing in the desired directory (I used c:\apps) 
    3.  Note the location of your Tomcat installation - we will refer to this as %CATALINA_HOME%. 
    Installing the mod_webapp binary 
    1.  Download the mod_webapp binary from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/win32/webapp-module-1.0-tc40-windows.zip. 
    2.  Unpack the webapp distribution and cd into the directory. 
    3.  Copy libapr.dll to your system directory:  
      copy .\libapr.dll c:\windows\system
       
     
     
      
    --------------------------------------------------------------------------------
    Or 'c:\winnt\system32' if you're on NT. 
    --------------------------------------------------------------------------------
     
    4.  Unless you are running Windows NT, copy libapr.dll and mod_webapp.so to %APACHE_HOME%\modules:  
      copy mod_webapp.so %APACHE_HOME%\modules
    copy libapr.dll %APACHE_HOME%\modules
       
     
     
    Configuring Apache 
    1.  Edit httpd.conf  
     a.  Add the following lines to the end of the LoadModule section:  
      LoadModule webapp_module modules/mod_webapp.so
    AddModule mod_webapp.c
       
     
     
     b.  Add the following lines to the end of httpd.conf:  
      WebAppConnection conn      warp  localhost:8008
    WebAppDeploy     examples    conn  /examples
    WebAppInfo /webapp-info
       
     
     
      
    --------------------------------------------------------------------------------
    In the first line, provide the correct port for the Tomcat's WarpConnector. Usually this is 8008. The "conn" literal is simply the name I've assigned to this connection; you can call it anything you want. The second line defines a Tomcat web application "examples" in the "conn" connection that is mapped to the URL "/examples". The last line is a special URL that will provide the status of all mod_webapp connections and deployed applications. You don't need it if you don't want it. 
    --------------------------------------------------------------------------------
     
     c.  If you are using Cocoon, you can also add this:  
      WebAppDeploy     cocoon    conn  /cocoon
       
     
     
    2.  Start Apache:  
      cd %APACHE_HOME%
    apache
       
     
     
    Testing 
    1.  Always start Tomcat first and then start Apache. If you have to bounce Tomcat, remember to take down Apache first and restart it after Tomcat restarts. mod_webapp is very sensitive that way. 
    2.  If you set up a test to point to the "examples" web app in Tomcat, first double-check "examples" in Tomcat: in your browser, type: http://[host]:[port]/examples, where [port] refers to where you have Tomcat running (usually 8080). 
    3.  Now try the URL that you defined in httpd.conf to point to "examples": in your browser, type: http://[host]:[port]/examples, where [port] refers to where you have Apache running. If you don't get anything, try restarting Tomcat and then Apache. 
    4.  Now test the webapp-info page, if you defined that. In your browser, type: http://[host]:[port]/webapp-info/, where [port] refers to where you have Apache running. Don't forget the trailing slash! On my installation, just typing http://[host]:[port]/webapp-info, won't work 
      

  2.   

    还是用weblogic、webSphere吧。搞开发迟早要用到的。
      

  3.   

    在于tomcat和apache通信的协议以及版本不太一样