iis和tomcat5如何共用80端口

hkhkhkk 2007-10-12 06:06:51
客户的服务器上有的系统用的是asp,用的iis,如今我们公司的系统是jsp用tomcat做服务器,现在要把两个系统放在一起,iis和tomcat同时能用80端口,应该怎么做,我在网上查了资料,还不是很明白,谢谢高手指点一下,另外网上说需要isapi_redirector2.dll 这个文件,可是网上给的地址我都没下到,请哪为发一个给我,我的邮箱是hkhkhkk@163.com
...全文
427 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
什么都不能 2007-10-22
  • 打赏
  • 举报
回复
问题描述:
iis上发布了多个网站,其中之一要改为jsp,需要tomcat进行支持,但如果tomcat独立运行则原有域名端口已被iis占用。

问题解决:
使用tomcat connector(可从tomcat主页下载),简要配置步骤如下:
一、下载isapi_redirect.dll到$tomcat/bin/win32/i386/ (下载路径为http://mirror.x10.com/mirror/apache/tomcat/tomcat-connectors/jk/binaries/win32/ ,但该路径可能改变)

二、下载workers.properties和uriworkermap.properties到$tomcat/conf (下载路径为http://mirror.x10.com/mirror/apache/tomcat/tomcat-connectors/jk/source/jk-1.2.22/tomcat-connectors-1.2.22-src.zip 在解开压缩包中的conf目录中,只要workers.properties.minimal和uriworkermap.properties就好,具体如何配置这两个文件有在线文档,不过简单来说直接放那儿就好)

三、修改注册表,方法如下:
1、In the registry, create a new registry key named "HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0"
2、Add a string value with the name extension_uri and a value of /jakarta/isapi_redirect.dll
3、Add a string value with the name log_file and a value pointing to where you want your log file to be (for example c:\tomcat\logs\isapi.log).
4、Add a string value with the name log_level and a value for your log level (can be debug, info, error or emerg).
5、Add a string value with the name worker_file and a value which is the full path to your workers.properties file (for example c:\tomcat\conf\workers.properties)
6、Add a string value with the name worker_mount_file and a value which is the full path to your uriworkermap.properties file (for example c:\tomcat\conf\uriworkermap.properties)

四、在iis中需要更改的站点上右键选择“新建->虚拟目录”,一定要取名为jakarta,然后制定$tomcat/bin/win32/i386/为目录地址,并且要在“执行(isapi...)上打勾”;

五、在该网站属性中,选择“ISAPI筛选器”,加入一个筛选器,取名为“tomcat”(这个随便),选择可执行的isapi_redirect.dll的路径。

六、重启整个iis服务,看见筛选器“tomcat”前面是绿箭头表示配置成功。

详细配置请见:http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html
pzhuyy 2007-10-17
  • 打赏
  • 举报
回复
顶楼上,
mxlmwl 2007-10-15
  • 打赏
  • 举报
回复
用Apache整合IIS和Tomcat即可。
hkhkhkk 2007-10-14
  • 打赏
  • 举报
回复
help

5,655

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧