让 TRAC 在 IIS7 上运行

发布于 2024-07-09 07:58:38 字数 2361 浏览 6 评论 0原文

我尝试使用以下常见问题解答来获取 Trac upp 并在我的 IIS/w2008 服务器上运行: TracOnWindowsIisAjp

一切直到“3.Install 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-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>

感谢任何帮助。

Im trying to get Trac upp and running on my IIS/w2008 server using this FAQ: TracOnWindowsIisAjp

Everything upp until "3. Install Tomcat AJP Connector for IIS" works ok.
I then define my directories as : C:\wwwroot\trac.evju.biz\AJP\, in the bin catalog I place the dll file, and 3 config files with this content:

isapi_redirect-1.2.26.properties
# Configuration file for the ISAPI Redirector

# 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

Then I run into problems :

  • Define a virtual directory named AJP-Connector, pointing to your bin subdirectory, with permissions to execute executables (not only scripts).

I defined a virtual directory named AJP, pointing it to the bin subdirectory, but I can't find any way of give it execute permissions

And the rest of the instructions obviously don't quite apply to IIS7

  • Allow execution of the DLL as Web
    Service Extension
  • In the IIS Manager, open Web Service Extensions.
  • Define a new Web Service Extension called AJP-Connector (or whatever you want).
  • Add C:\AJP-Connector\bin\isapi_redirect-1.2.26.dll to the required files (replace "C:\AJP-Connector" with your actual directory).
  • Set extension status to Allowed.

I tried adding the dll as a ISAPI extension, this resulted in a web.config file in the bin catalog with the following content:

<?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>

Any help appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

深空失忆 2024-07-16 07:58:38

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

Just stumbled upon this question from an unrelated Google search. Odd how that happens...
IIS7 supports FastCGI natively, I'd highly recommend using that over AJP. If you're still watching this question leave a comment and I'll follow up with details of how to install.

何必那么矫情 2024-07-16 07:58:38

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

@Jeff Mc - I'm actually looking at setting trac on IIS7 and stumbled across this thread, just as you did. I would love to know the details on using FastCGI as well as any of the other gotchas with trac on IIS7.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文