<br>[mark@db264282 ~/work]$ nginx -c infrastructure/nginx_trac_modwsgi.conf<br>2008/01/15 02:24:10 [emerg] 25298#0: glob() "/opt/local/conf/wsgi_vars" failed (2: No such file or directory) in infrastructure/nginx_trac_modwsgi.conf:39
<br>Adrian how to fix this<br><br><div><span class="gmail_quote">On 1/13/08, <b class="gmail_sendername">Adrian Perez</b> <<a href="mailto:adrianperez@udc.es">adrianperez@udc.es</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Now with WSGI-enabled Bazaar repository, hehe:<br><br><br>El Mon, 14 Jan 2008 03:49:27 +0100<br>Adrian Perez <<a href="mailto:adrianperez@udc.es">adrianperez@udc.es</a>> escribió:<br><br>> server {<br>> listen
<a href="http://127.0.0.1">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><br> location /bzr {<br> wsgi_pass /tmp/test/bzrsmart.wsgi;<br> }<br><br>> location / {
<br>> wsgi_pass /tmp/test/run.wsgi;<br>> }<br>> }<br>><br>> Next test will be Bazaar's smart-server over HTTP, as it is also a<br>> WSGI application.<br><br>Contents of "bzrsmart.wsgi
":<br><br> from bzrlib.transport.http import wsgi<br> application = wsgi.make_app(root="/tmp/test",<br> prefix="/", path_var="REQUEST_URI",<br> readonly=True)<br><br>Do "mkdir /tmp/test/bzr" and put some branches on it... you are done
<br>and the thing works as expected =)<br><br>Maybe I will switch from Apache to Nginx at home in the next days, as I<br>use Trac and Bazaar for tracking my stuff...<br><br>Best regards, hope you find this this report useful,
<br><br>--<br>Ten million Linux users can't be wrong!<br><br></blockquote></div><br>