惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

博客园 - Brendan

[转载]Manually configuring Microsoft Internet Information Services (IIS) AXIS部署错误解决方案集锦 使用System.Web.Mail发送Mail的错误解决方案 类的XML序列化(XML Serialization) [翻译]你可以赚钱,但你不能赚时间 Windows 2003 Server配置IIS服务器(ASP, ASP.NET)全功略 Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive 用MS SQL Server事件探查器来跟踪数据库的操作 反反编译工具——Deploy.NET C中获取当前时间的函数 Buffered I/O 与 Non-Buffered I/O性能差异的实例体验 替换函数(Substitution Function) 主定理(Master Theorem) Dynamic Programming之Longest Increasing Subsequence (LIS)问题 ADO.NET数据库连接模块 ASP.NET控件事件丢失的探究 SQLDMO For C#(翻译) 关联(Association)设计中的扇形陷阱(Fan Traps)和断层陷阱(Chasm Traps) 简单并发控制
IIS与TOMCAT协同工作---在IIS下运行JSP页面
Brendan · 2006-12-07 · via 博客园 - Brendan

         最近碰到一个问题:我们实验室的一台IBM EServer服务器被运到学校的信息办进行托管,这台服务器上面跑着一些ASP.NET网站、ASP网站以及一个JSP的网站。服务器的操作系统是Window Server 2003,并在其上安装了IIS6.0、Tomcat5.5等服务器软件。众所周知,IIS服务器占用80端口,而Tomcat服务器一般用8080端口。本来两者互不侵犯,但是因为学校的信息办的防火墙只允许开80端口,其他端口一律broke。这显然是那些非IIS服务器的服务不能运行。

         为了解决上述问题,我查了一些资料。了解到,在IIS的站点属性中有一个对ISAPI 过滤器的配置。而Apache的Jakarta项目下面有一个Jakarta Isapi Redirector工具,就是一个ISAPI过滤器,这个过滤器可以把含有.JSP的URL地址发送给TOMCAT进行处理,并将处理结果,即动态生成的HTML页通过IIS发送回请求者那边。也就是说通过一个80端口,同时也能运行JSP页面。

         我下载了一个isapi_redirect-1.2.14.exe,按照wizard简单安装了一下。为了确保服务器的运行正常,我先在一台XP PC上试运行了一下,配置步骤如下:
         
         1 打开IIS管理端,右键点击默认站点的属性页面,选择ISAPI过滤器选项卡,查看名为Jakarta的Jakarta Isapi Redirector是否存在,并确保其状态为启用!
         2 打开Jakarta Isapi Redirector安装目录下conf文件夹中的uriworkermap.properties,在其中添加一个你需要通过IIS运行的JSP站点的名称(该站点需要在TOMCAT下的webapps目录下,并运行良好),比如:该站点名称为test,则需要加入/test/*=wlb。
         3 重启IIS
         4 运行http://localhost/test/...便可看到结果

         上述四步为XP下的配置过程,如果是在Server 2003下的话,还需要在第二步之前,做如下配置:

         1.5 打开IIS管理端,点击WEB扩展服务,新建一个扩展服务,其名称建议为Jakarta,浏览Jakarta Isapi Redirector安装目录下的bin,选择isapi_redirect.dll。并允许这个服务的运行。

         做完上述的配置,你就可以解决我所遇到的需要在IIS下与TOMCAT协同的问题。我所参考的主要资料是http://www.cflex.net/showFileDetails.cfm?ObjectID=296&Object=File&ChannelID=1。如果需要知道详细的情况,也可访问该地址查询。