【发布时间】:2008-11-20 07:33:39
【问题描述】:
我正在尝试使用此常见问题解答让 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
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
- 允许将 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>
任何帮助表示赞赏。
【问题讨论】: