beta testing for mod_wsgi

mobiledreamers at gmail.com mobiledreamers at gmail.com
Tue Jan 15 13:25:45 MSK 2008


[mark at db264282 ~/work]$ nginx -c infrastructure/nginx_trac_modwsgi.conf
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
Adrian how to fix this

On 1/13/08, Adrian Perez <adrianperez at udc.es> wrote:
>
>
> Now with WSGI-enabled Bazaar repository, hehe:
>
>
> El Mon, 14 Jan 2008 03:49:27 +0100
> Adrian Perez <adrianperez at udc.es> escribió:
>
> >   server {
> >     listen    127.0.0.1;
> >     server_name localhost;
> >
> >     root /var/www/localhost/htdocs;
> >
> >     include wsgi_vars;
> >
> >     location /login {
> >       auth_basic "Trac";
> >       auth_basic_user_file /tmp/test/passwd;
> >       wsgi_pass /tmp/test/run.wsgi;
> >     }
>
>       location /bzr {
>         wsgi_pass /tmp/test/bzrsmart.wsgi;
>       }
>
> >     location / {
> >       wsgi_pass /tmp/test/run.wsgi;
> >     }
> >   }
> >
> > Next test will be Bazaar's smart-server over HTTP, as it is also a
> > WSGI application.
>
> Contents of "bzrsmart.wsgi":
>
>   from bzrlib.transport.http import wsgi
>   application = wsgi.make_app(root="/tmp/test",
>         prefix="/", path_var="REQUEST_URI",
>         readonly=True)
>
> Do "mkdir /tmp/test/bzr" and put some branches on it... you are done
> and the thing works as expected =)
>
> Maybe I will switch from Apache to Nginx at home in the next days, as I
> use Trac and Bazaar for tracking my stuff...
>
> Best regards, hope you find this this report useful,
>
> --
> Ten million Linux users can't be wrong!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080115/5d676830/attachment.html>


More information about the nginx mailing list