mod_wsgi 用于多个 trac 项目 [Windows]
我有一个带有 windows server 2008、Apache httpd 2.2 和 trac 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.