我正在尝试使用此常见问题解答来获取 Trac 并在我的 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
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-Connector 的虚拟目录,指向您的 bin 子目录,并具有执行可执行文件(不仅仅是脚本)的权限。
我定义了一个名为 AJP 的虚拟目录,将其指向 bin 子目录,但我找不到任何方法来授予它执行权限
其余说明显然不太适用于 IIS7
- 允许以 Web 方式执行 DLL 服务延伸
- 在 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>
任何帮助表示赞赏。
最佳答案
刚刚通过不相关的 Google 搜索偶然发现了这个问题。奇怪怎么会发生这种事... IIS7 本身支持 FastCGI,我强烈建议在 AJP 上使用它。如果您仍在关注这个问题,请发表评论,我将跟进如何安装的详细信息。
关于python - 让 TRAC 在 IIS7 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/304567/