window下配置Tomcat5.5和Apahce2.2.3


环境: jdk5.0  Tomcat5.5 Apahce2.2.3
需要下载tomcat连结器jk 1.2.20  tomcat.apache.org/connectors-doc/

第一步: 编写workers.properties
最简单的配置
  # Define 1 real worker using ajp13
  worker.list=worker1
  # Set properties for worker1 (ajp13)
  worker.worker1.type=ajp13
  worker.worker1.host=localhost
  worker.worker1.port=8009


第二步:修改Apache目录下conf/httpd.conf
增加下面的部分:
#加载连接器
 LoadModule jk_module  modules/mod_jk.so

#workers.properties的位置
JkWorkersFile    "C:/Program Files/Apache Software Foundation/Apache2.2/conf/workers.properties"
#日志
JkLogFile "C:/Program Files/Apache Software Foundation/Apache2.2/logs/mod_jk.log"
JkLogLevel    info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

#下面是配置哪些需要tomcat解析
JkMount  /*.jsp worker1
JkMount  /*.htm worker1
JkMount  /*.do worker1

#配置工程文件的位置
Alias /dogo "D:/Tomcat5.5/webapps/dogo/"
<directory><directory><directory><Directory "D:/Tomcat5.5/webapps/dogo/">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</directory></directory></directory></Directory>

完成启动tomcat Apache ok!

你可能感兴趣的:(apache,tomcat,C++,c,jsp)