Roberto,

Yes, the latest commit appears to work fine.  I did not need to use the new
UWSGI_CHDIR option either.

Thanks,
James

On Tue, Sep 14, 2010 at 9:00 AM, Roberto De Ioris <[email protected]> wrote:

>
> Il giorno 14/set/2010, alle ore 16.29, James ha scritto:
>
> > Roberto,
> >
> > Dynamic VirtualEnv does look broken.  It looks like it can sometimes show
> the wrong site for a URL.  I'm running uWSGI with:
> >
> > ./uwsgi -s /tmp/uwsgi.sock --vhost --no-site -L -C -M -p4
> >
>
>
> Can you try the latest mercurial commit ?
>
> There is a new dynamic option
>
> UWSGI_CHDIR
>
> It will chdir to the specified directory before every request.
>
> This is very useful for django (but i think at a lot of way it can be
> useful)
>
> As a test i have installed two pinax virtualenv
>
> DJANGOVENVS/pinax1
> DJANGOVENVS/pinax2
>
> with a 'pinaxsite' project in each dir (i have renamed pinax.wsgi to
> pinax.py)
>
> In nginx i have wrote my vhosts as this:
>
> server {
>        listen       8080;
>        server_name  sirius.local;
>
>        location / {
>                include uwsgi_params;
>                uwsgi_pass 127.0.0.1:3031;
>                uwsgi_param UWSGI_PYHOME /Users/roberto/DJANGOVENVS/pinax1;
>                uwsgi_param UWSGI_SCRIPT deploy.pinax;
>                uwsgi_param UWSGI_CHDIR
> /Users/roberto/DJANGOVENVS/pinax1/pinaxsite;
>        }
>    }
>
>    server {
>        listen       8080;
>        server_name  localhost;
>
>        location / {
>                include uwsgi_params;
>                uwsgi_pass 127.0.0.1:3031;
>                uwsgi_param UWSGI_PYHOME /Users/roberto/DJANGOVENVS/pinax2;
>                uwsgi_param UWSGI_SCRIPT deploy.pinax;
>                uwsgi_param UWSGI_CHDIR
> /Users/roberto/DJANGOVENVS/pinax2/pinaxsite;
>        }
>
>    }
>
>
>
> Then i start uwsgi :
>
> ./uwsgi -s :3031 -M -p 10 --vhost --no-site
>
>
> It works flawlessly for me
>
> Let me know if it works even for your setup
>
>
>
>
> --
> Roberto De Ioris
> http://unbit.it
> JID: [email protected]
>
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to