1

我试图使用这个常见问题解答 Trac upp 并在我的 IIS/w2008 服务器上运行:TracOnWindowsIisAjp

直到“3. 为 IIS 安装 Tomcat AJP 连接器”之前的一切都可以正常工作。然后我将我的目录定义为: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

worker.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-Connector 的虚拟目录,指向您的 bin 子目录,具有执行可执行文件(不仅是脚本)的权限。

我定义了一个名为 AJP 的虚拟目录,将其指向 bin 子目录,但我找不到任何方式赋予它执行权限

其余的说明显然并不完全适用于 IIS7

  • 允许将 DLL 作为 Web 服务扩展执行
  • 在 IIS 管理器中,打开 Web 服务扩展。
  • 定义一个名为 AJP-Connector(或任何您想要的)的新 Web 服务扩展。
  • 将 C:\AJP-Connector\bin\isapi_redirect-1.2.26.dll 添加到所需文件中(将“C:\AJP-Connector”替换为您的实际目录)。
  • 将扩展程序状态设置为允许。

我尝试将 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>

任何帮助表示赞赏。

4

2 回答 2

0

@Jeff Mc - 我实际上正在考虑在 IIS7 上设置 trac 并偶然发现了这个线程,就像你一样。我很想知道在 IIS7 上使用 FastCGI 以及任何其他带有 trac 的陷阱的详细信息。

于 2008-12-17T02:30:03.830 回答
0

刚刚从不相关的谷歌搜索中偶然发现了这个问题。奇怪的是怎么发生的...... IIS7 本身支持 FastCGI,我强烈建议在 AJP 上使用它。如果您仍在观看此问题,请发表评论,我将跟进如何安装的详细信息。

于 2008-12-16T04:58:07.683 回答