2011-08-31 75 views
1

我已将isapi_redirect安装到IIS中并允许运行。 我已经启用了在码头的AJP13,我可以telnet到8009端口 这是我目前uiworkermap.properties:使用isapi_redirect(tomcat连接器)将请求从IIS路由到Jetty

/hudson=jetty 
/hudson/*=jetty 

如果我主动要求的“http://本地主机/哈德森”或任何子目录我收到一个404错误。 所有其他网址都返回在IIS中定义的网站。 这告诉我,isapi_redirect正在查看uiworkermap文件并尝试正确重定向。

在Jetty日志和isapi_redirect日志中,我看不到任何错误。 如果我去http://localhost:8008/hudson我看到它正确。 你有什么想法可能导致这种情况?

更新:我创建了一个虚拟目录像它在这里说,指着isapi_redirect DLL名称“雅加达”:http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html 经过这一步的错误改变,现在在浏览器中我看到:

Bad Gateway! 

There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server. 

Jakarta/ISAPI/isapi_redirector/1.2.32() 

在错误日志(在调试模式下)我可以看到,它第一次连接,并且请求已经作出,但没有来自码头响应,并且产生这样的错误:

[错误] ajp_get_reply :: jk_ajp_common。 c(2118):(码头)Tomcat倒闭或拒绝了conn挠度。没有响应发送到客户端(还)

这是日志与请求和错误的部分: https://rapidshare.com/files/3999719393/isapi_redirect_log.txt

+0

这只是一个安装问题,它不应该太难。任何建议,将不胜感激。你不必有完整的答案,我会按照你可能会建议的步骤和麻烦,我会奖励给帮助我最多的用户的赏金。 – Durden81

回答

3

好,在没有从计算器用户的任何帮助,最终也读取在官方网站码头约AJP13:

It is recommended to NOT use the AJP protocol, and superior performance and clearer semantics will be achieve using HTTP.

我放弃了AJP并用一个伟大的,有据可查的开源DLL有在IIS中,IIRF HTTP代理功能。

所以我会建议任何有类似问题的人使用HTTP代理。

相关问题