整合IIS与TOMCAT

如果想http://localhost/hello.jsphttp://localhost:8080/hello.jsp一样的话就看下面的文档。 我使用的环境。 我用的配置如下:Win2000 + IIS 5.0 + Tomcat 5.5.9 。使用JK连接器。isapi_redirect-1.2.26.dll。

1、首先安装tomcat保证http://localhost:8080能用。将isapi_redirect-1.2.26.dll复制到c:/Apache/iis目录。改名字为isapi_redirect.dll

2、使用regedit在Windows注册表中创建一个新键: "HKEY_LOCAL_MACHINE/SOFTWARE/Apache Software Foundation/Jakarta Isapi Redire ctor/1.0"  ========================================================================= extension_uri=/jakarta/isapi_redirect.dll worker_file=c:/Apache/Tomcat5.0/conf/workers.properties worker_mount_file=c:/Apache/Tomcat5.0/conf/uriworkermap.properties log_file=c:/Apache/Tomcat5.0/logs/isapi.log log_level=info =============================================================== 3、建立配置文件 在c:/Apache/Tomcat5.0/conf目录下建立两个配置文件,workers.properties和uriworkermap.properties其内容分别为: workers.properties的内容: =============================================================================== # An entry that lists all the workers defined   worker.list=worker1 # Entries that define the host and port associated with these workers   worker.worker1.host=localhost   worker.worker1.port=8009   worker.worker1.type=ajp13 ======================================================================== uriworkermap.properties的内容: ========================================================================= #with the following three lines   /*.jsp=worker1   /*.do=worker1   /servlet/*=worker1 #For the examples context it requires to replace the following line   /examples/*=worker1

========================================================================== 参数/*.jsp=worker1 *.jsp文件被tomcat处理。 参数/examples/* examples下的所有文件被tomcat处理。 4,建立虚拟目录 打开IIS管理器,建立虚目录jakarta,其目录指向c:/Apache/iis目录。其目录中含有isapi_redirect.dll文件。让网站有执行的权限(如ISAPI应用程序或CGI)。也可以直接给c:/Apache/iis设权限但是操作复杂。 5,设置筛选器 在IIS管理器左侧网站下面选中网站,右键选择属性,在ISAPI筛选器标签页添加筛选器,名字为jakarta,路径为isapi_redirect.dll的路径名。即c:/Apache/iis/isapi_redirect.dll。如果成功重新进入属性页,则该新建的筛选器会有一个绿色向上箭头,优先级为高,这说明jk模块加载成功。 完成上诉步骤进行测试 如果:http://localhost/hello.jsphttp://localhost:8080/hello.jsp一样。说明成功。

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值