mod_wsgi 用于多个 trac 项目 [Windows]

发布于 2024-08-31 22:32:46 字数 1345 浏览 2 评论 0原文

我有一个带有 windows server 2008、Apache httpd 2.2trac 0.11 的系统,我正在使用 mod_wsgi 所以apache 服务器执行 Web 服务器工作。

与 Trac 集成 阅读此网站后,我发现最合适的解决方案是 以下(我在我的httpd.conf中有一行Include conf/extra/httpd-trac.conf

httpd-trac.conf

LoadModule wsgi_module modules/mod_wsgi.so

WSGIDaemonProcess tracs processes=3 threads=25 maximum-requests=1000

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/trac/([^/]+)
RewriteCond c:\Project\Services\Trac\%1\conf\trac.ini !-f
RewriteRule . - [F]

RewriteCond %{REQUEST_URI} ^/trac/([^/]+)
RewriteRule . - [E=trac.env_path:c:\Project\Services\Trac\%1]

WSGIScriptAliasMatch ^/trac/([^/]+) c:\Project\Trac\trac.wsgi

<Directory c:\Project\Trac>
    WSGIProcessGroup tracs
    WSGIApplicationGroup %{GLOBAL}
    Order deny,allow
    Allow from all
</Directory>

我遇到的问题如下:

C:\Project\Apache\bin>httpd.exe -k start
C:/Project/Apache/conf/extra/httpd-trac.conf 第 3 行语法错误: 无效命令“WSGIDaemonProcess”,可能拼写错误或由 模块未包含在服务器配置中

目标:

我的目标是拥有多个具有不同身份验证信息的 trac 项目。 如果您有除此之外的其他解决方案,请告诉我=)

谢谢您的帮助。

I have a system with windows server 2008, Apache httpd 2.2 and trac 0.11 i'm using mod_wsgi so the apache server do the web server job.

Integration with Trac after read this site i found that the most suitable solution was
the following (i have in my httpd.conf the line Include conf/extra/httpd-trac.conf)

httpd-trac.conf

LoadModule wsgi_module modules/mod_wsgi.so

WSGIDaemonProcess tracs processes=3 threads=25 maximum-requests=1000

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/trac/([^/]+)
RewriteCond c:\Project\Services\Trac\%1\conf\trac.ini !-f
RewriteRule . - [F]

RewriteCond %{REQUEST_URI} ^/trac/([^/]+)
RewriteRule . - [E=trac.env_path:c:\Project\Services\Trac\%1]

WSGIScriptAliasMatch ^/trac/([^/]+) c:\Project\Trac\trac.wsgi

<Directory c:\Project\Trac>
    WSGIProcessGroup tracs
    WSGIApplicationGroup %{GLOBAL}
    Order deny,allow
    Allow from all
</Directory>

the problem i encouter is the following:

C:\Project\Apache\bin>httpd.exe -k start
Syntax error on line 3 of C:/Project/Apache/conf/extra/httpd-trac.conf:
Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a
module not included in the server configuration

The objective:

My objective is to have multiple trac projects with diferente authentication information.
If you have other solution than this please tell me =)

Thank you for your help.

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

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

发布评论

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

评论(1

深白境迁sunset 2024-09-07 22:32:46

Windows不支持mod_wsgi的守护进程模式。只需尝试删除 WSGIDaemonProcess/WSGIProcessGroup 指令即可。这将导致所有 Trac 实例在同一进程中运行。大多数时候这样做应该没问题。

Windows doesn't support daemon mode of mod_wsgi. Just try removing WSGIDaemonProcess/WSGIProcessGroup directives. This will result in all Trac instances running in same process. Most of the time doing that should be fine.

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