<i>Please note that using Trac via CGI is significantly slower than any other deployment method, such as <a class="wiki" href="http://trac.edgewall.org/wiki/TracModPython">mod_python</a> or <a class="wiki" href="http://trac.edgewall.org/wiki/TracFastCgi">
FastCGI</a>.</i><br><br><div class="gmail_quote">On Jan 13, 2008 6:49 PM, Adrian Perez <<a href="mailto:adrianperez@udc.es">adrianperez@udc.es</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
El Sat, 12 Jan 2008 20:50:47 +0100<br>Adrian Perez <<a href="mailto:adrianperez@udc.es">adrianperez@udc.es</a>> escribió:<br><div class="Ih2E3d"><br>> Nginx without using mod_wsgi features works as expected, I will be
<br>> done some testing in the next 2-3 days.<br><br></div>Rewarding this, it looks like all test scripts included with mod_wsgi<br>run without problems in my laptop (x86-64, Intel Core2, Gentoo Linux).<br><br>The shocking news: I have been able of running Trac
0.11 beta1 with<br>mod_wsgi! The configuration snippets looks like this:<br><br> server {<br> listen <a href="http://127.0.0.1" target="_blank">127.0.0.1</a>;<br> server_name localhost;<br><br> root /var/www/localhost/htdocs;
<br><br> include wsgi_vars;<br><br> location /login {<br> auth_basic "Trac";<br> auth_basic_user_file /tmp/test/passwd;<br> wsgi_pass /tmp/test/run.wsgi;<br> }<br> location / {<br> wsgi_pass /tmp/test/run.wsgi;
<br> }<br> }<br><br>The idea of adding an extra "/login" location for authentication was<br>taken from <a href="http://trac.edgewall.org/wiki/TracCgi" target="_blank">http://trac.edgewall.org/wiki/TracCgi</a>
<br><br>The "run.wsgi" file contents are as follows (inspiration taken from<br><a href="http://trac.edgewall.org/wiki/TracModWSGI" target="_blank">http://trac.edgewall.org/wiki/TracModWSGI</a>):<br><br> import os,
trac.web.main<br> os.environ["TRAC_ENV"] = "/tmp/test"<br> os.environ["PYTHON_EGG_CACHE"] = "/tmp/test/eggs"<br> application = trac.web.main.dispatch_request<br><br>Next test will be Bazaar's smart-server over HTTP, as it is also a WSGI
<br>application.<br><br>Manlio you rock! I am getting very excited about this stuff!<br><font color="#888888"><br>--<br>Voodoo is a very interesting religion for the whole family, even those<br>members of it who are dead.
<br> -- (Terry Pratchett & Neil Gaiman, Good Omens)<br><br></font></blockquote></div><br>