我试图使用此常见问题解答获取Trac upp并在我的IIS / w2008服务器上运行:TracOnWindowsIisAjp
直到“3.安装Tomcat AJP Connector for IIS”的一切工作正常。 然后我将目录定义为:C:\ wwwroot \ trac.evju.biz \ AJP \,在bin目录中我放置了dll文件,以及3个包含此内容的配置文件:
isapi_redirect-1.2.26.properties #ISAPI重定向器的配置文件
# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges
extension_uri=/AJP/isapi_redirect-1.2.26.dll
# Full path to the log file for the ISAPI Redirector
log_file=C:\wwwroot\trac.evju.biz\AJP\logs\isapi_redirect.log
# Log level (debug, info, warn, error or trace)
log_level=info
# Full path to the workers.properties file
worker_file=C:\wwwroot\trac.evju.biz\AJP\conf\workers.properties
# Full path to the uriworkermap.properties file
worker_mount_file=C:\wwwroot\trac.evju.biz\AJP\conf\uriworkermap.properties
workers.properties
# Define 1 real worker
worker.list=trac
# Set properties for trac (ajp13)
worker.trac.type=ajp13
worker.trac.host=localhost
worker.trac.port=8009
worker.trac.socket_keepalive=0
uriworkermap.properties
/C:\wwwroot\trac.evju.biz\irm\*=trac
然后我遇到了问题:
我定义了一个名为AJP的虚拟目录,将其指向bin子目录,但我找不到任何给它执行权限的方法
其余的说明显然不太适用于IIS7
我尝试将dll添加为ISAPI扩展,这导致bin目录中的web.config文件包含以下内容:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers accessPolicy="Read, Execute, Script">
<remove name="ISAPI-dll" />
<add name="AJP" path="*.ajp" verb="*" modules="IsapiModule" scriptProcessor="C:\wwwroot\trac.evju.biz\AJP\bin\isapi_redirect-1.2.26.dll" resourceType="Unspecified" requireAccess="Execute" />
</handlers>
</system.webServer>
</configuration>
任何帮助表示赞赏。
答案 0 :(得分:1)
查看以下链接:http://neosmart.net/blog/2006/configuring-jsp-for-iis/
有了这个,我就开始了。
答案 1 :(得分:0)
刚从无关的Google搜索中偶然发现了这个问题。奇怪的是如何发生...... IIS7原生支持FastCGI,我强烈推荐使用它而不是AJP。如果您仍在观看此问题,请发表评论,我会详细介绍如何安装。
答案 2 :(得分:0)
@Jeff Mc - 我实际上正在考虑在IIS7上设置trac并偶然发现这个问题,就像你一样。我很想知道在IIS7上使用FastCGI以及任何其他陷阱的详细信息。
答案 3 :(得分:0)
本文中有关于IIS7 fastCGI的详细说明[http://er2v.wordpress.com/2009/04/15/install_trac_on_64_bit_windows_and_run_it_under_iis7_fast_cgi/]article [1]