【问题标题】:Getting TRAC to run on IIS7让 TRAC 在 IIS7 上运行
【发布时间】: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>

任何帮助表示赞赏。

【问题讨论】:

    标签: python iis trac


    【解决方案1】:

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

    【讨论】:

    • 是的,我仍在寻找实现这一点,但我没有找到关于如何使用 fastCGI 的好信息。
    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-03-04
      • 1970-01-01
      • 2012-09-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多