软件环境:IIS6.0 + tomcat6.0.14 + Jakarta_Isapi_Redirector(附件)
一、ISPAI
下载附件中的 isapi_redirect-1.2.14.exe 并安装 安装路径最好选在tomcat主目录下 起名isapi
之后进入该目录下conf目录,修改uriworkermap.properties(直接粘贴过去就行)
# uriworkermap.properties - IIS
#
# This file provides sample mappings for example wlb
# worker defined in workermap.properties.minimal
# The general syntax for this file is:
# [URL]=[Worker name]
/admin/*=wlb
/manager/*=wlb
/jsp-examples/*=wlb
/servlets-examples/*=wlb
# Optionally filter out all .jpeg files inside that context
# For no mapping the url has to start with exclamation (!)
!/servlets-examples/*.jpeg=wlb
#
# Mount jkstatus to /jkmanager
# For production servers you will need to
# secure the access to the /jkmanager url
#
/jkmanager=jkstatus
/*.jsp=wlb
/*.do=wlb
解释:
wlb可理解为过滤器名称
/*.jsp等等 为请求路径
配置conf\workers.properties.minimal(若相同可不变)
# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
worker.list=wlb,jkstatus
#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
#
# Defining a load balancer
#
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
#
# Define status worker
#
worker.jkstatus.type=status
二、TOMCAT
server.xml:
<Host name="123.dqoubao.com" appBase="G:/web"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="callcenter" debug="0" reloadable="true"/>
</Host>
例子:
<Host name=域名 appBase=虚拟路径
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase=文件夹名 debug="0" reloadable="true"/>
</Host>
三、IIS6.0配置(重点)
IIS配置:
1.新建网站,名称随意,
【网站IP地址】:(全部未分配)
【此网站的主机头】:域名(同tomcat\conf\server.xml <Host>标签的"name"属性中的域名相同)
【网站主目录路径】:虚拟路径+文件夹名(tomcat\conf\server.xml<Host>标签的"appBase"属性中的虚拟路径 加上 <Context>子标签的"docBase"属性的文件夹名)
勾选【允许匿名访问网站】
【允许下列权限】:读取、运行脚本、执行
2.在此网站下建立虚拟目录 名称:jakarta(必须)
【路径】:isapi\bin (isapi_redirect.dll的目录)
【允许下列权限】:读取、运行脚本、执行
3.网站-->右键-->属性:
1)【ISAPI筛选器】-->添加-->
【筛选器名称】:jakarta
【可执行文件】:isapi\bin\isapi_redirect.dll (isapi_redirect.dll文件)
2)【主目录】-->【执行权限(p)】:选择【脚本和可执行文件】-->配置-->添加-->【可执行文件】:isapi\bin\isapi_redirect.dll (isapi_redirect.dll文件)【扩展名】:.jsp及.do 确定并且包括子目录jakarta
3)【文档】:-->添加-->【默认内容页】:比如index.html(对应网站默认首页) -->确定-->把其余的都删掉
4.Web服务扩展-->右键-->添加一个新的Web服务扩展:
【扩展名】:jakarta(必须)
【要求的文件】:isapi\bin\isapi_redirect.dll (isapi_redirect.dll文件)
勾选【设置扩展状态为允许】
保存
最后 重启tomcat及IIS
经过多次测试 全部正确 若中间出现问题 测试方法 可先将tomcat\conf\server.xml中的<HOST>标签的name属性改为localhost
然后在IIS中右键单击网站点选【属性】-->【网站】选项卡中的【IP地址】栏后面的【高级】按钮 将网站的主机头改为空 端口为80
再重启tomcat及IIS 本地访问http://localhost/ 若成功 说明配置正确 问题可能出在 域名上
Jakarta_Isapi_Redirector(下载地址)
http://download.csdn.net/source/2784777
分享到:
相关推荐
Myeclipse7.0+tomcat6.0.14+JDK jdk1.6.0_05+mysql配置全过程,图文说明,步骤详细,自己经过多次重复工作总结的成果,和大家分享。
Tomcat6.0.14安装版,启动和关闭都很方便,还可以结合myEclipse使用
tomcat6.0.14安装版:只要环境变量java_home设置好了,安装版的tomcat会自动找到JDK.
Apache Tomcat 6.0.14
Tomcat6.0.14 部署java 项目 服务容器
apache-tomcat-6.0.14.rar
tomcat 6.0.14
java中的主要技术hibernate的具体运用
tomcat-6.0.14 tomcat-6.0.14 tomcat-6.0.14 tomcat-6.0.14 tomcat-6.0.14
APACHE 2.2.4与TOMCAT6.0.14整合教程
JSP tomcat6.0.14. JSP tomcat6.0.14. 大家用用看
tomcat 6.0.14 源码编译时需要的额外jar包 比较容易找到的不列入了 ant.jar commons-logging.jar org.eclipse.jdt.core_XXX.jar 下面的打在压缩包里面了 jaxrpc.jar puretls.jar wsdl4j-...
apache-tomcat-6.0.14
AS4+JDK+Tomcat6.0.14安装配置教程
HttpWatch Professional v6.0.14+许可文件
APACHE 2.2.8+TOMCAT6.0.14配置负载均衡,我在网上看到的例子,试验了一下,可以使用!!
strust2文件上传 +包,开发环境jdk1.6 + tomcat6.0.14 + Myeclipse6.0 + Struts2.0.14 + commons-fileupload-1.2.1 + commons-io-1.4 文件中有fileupload-1.2.1 + commons-io-1.4