> hi i try to run trac under uwsgi but i get these error:
>
> i run uwsgi with --vhost and --no-site
> uwsgi.log:
>
> INVALID PROTOCOL:
>
>
> tracwsgi.py:
>
> import os
> os.environ['PYTHON_EGG_CACHE'] = '/home/vanda/.pycache'
> import trac.web.main
> os.environ['TRAC_ENV'] = '/home/vanda/bug'
> application = trac.web.main.dispatch_request
>
>
> nginx.conf:
> server {
> listen 80;
> server_name zzz.com;
> charset utf-8;
> root /home/zzz/bug;
> access_log /home/zzz/log/nginx/trac.access.log;
> error_log /home/zzz/log/nginx/trac.error.log;
> location ~ /(.*?)/chrome/site/ {
> rewrite /(.*?)/chrome/site/(.*) /$1/htdocs/$2 break;
> root /home/zzz/;
> }
> location / {
> uwsgi_param SCRIPT_NAME http://zzz.com/;
> uwsgi_pass 127.0.0.1:5000;
> uwsgi_param UWSGI_SCRIPT tracwsgi;
> uwsgi_param UWSGI_PYHOME /home/zzz/bug;
> uwsgi_param UWSGI_CHDIR /home/zzz/bug;
>
> }
>
> }
>
>
>
Hi, you forgot
include uwsgi_params;
in location block
--
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi