<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 &lt;<a href="mailto:adrianperez@udc.es">adrianperez@udc.es</a>&gt; 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 &lt;<a href="mailto:adrianperez@udc.es">adrianperez@udc.es</a>&gt; escribió:<br><div class="Ih2E3d"><br>&gt; Nginx without using mod_wsgi features works as expected, I will be
<br>&gt; 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 &nbsp;(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> &nbsp;server {<br> &nbsp; &nbsp;listen &nbsp; &nbsp;<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>;<br> &nbsp; &nbsp;server_name localhost;<br><br> &nbsp; &nbsp;root /var/www/localhost/htdocs;
<br><br> &nbsp; &nbsp;include wsgi_vars;<br><br> &nbsp; &nbsp;location /login {<br> &nbsp; &nbsp; &nbsp;auth_basic &quot;Trac&quot;;<br> &nbsp; &nbsp; &nbsp;auth_basic_user_file /tmp/test/passwd;<br> &nbsp; &nbsp; &nbsp;wsgi_pass /tmp/test/run.wsgi;<br> &nbsp; &nbsp;}<br> &nbsp; &nbsp;location / {<br> &nbsp; &nbsp; &nbsp;wsgi_pass /tmp/test/run.wsgi;
<br> &nbsp; &nbsp;}<br> &nbsp;}<br><br>The idea of adding an extra &quot;/login&quot; 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 &quot;run.wsgi&quot; 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> &nbsp;import os, 
trac.web.main<br> &nbsp;os.environ[&quot;TRAC_ENV&quot;] = &quot;/tmp/test&quot;<br> &nbsp;os.environ[&quot;PYTHON_EGG_CACHE&quot;] = &quot;/tmp/test/eggs&quot;<br> &nbsp;application = trac.web.main.dispatch_request<br><br>Next test will be Bazaar&#39;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> &nbsp; &nbsp; &nbsp; &nbsp;-- (Terry Pratchett &amp; Neil Gaiman, Good Omens)<br><br></font></blockquote></div><br>