python - uWSGI vhost problem -


uwsgi config

[uwsgi] socket = /tmp/uwsgi.sock chmod-socket = 666 processes = 1 master = true vhost = true no-site = true 

nginx config

server {     listen       80;     server_name  www.site1.com;      location / {         include uwsgi_params;         uwsgi_pass unix:/tmp/uwsgi.sock;         uwsgi_param uwsgi_pyhome /var/virtualenvs/site1;         uwsgi_param uwsgi_chdir /var/www/site1;         uwsgi_param uwsgi_script wsgi;     } }  server {     listen       80;     server_name  www.site2.com;      location / {         include uwsgi_params;         uwsgi_pass unix:/tmp/uwsgi.sock;         uwsgi_param uwsgi_pyhome /var/virtualenvs/site2;         uwsgi_param uwsgi_chdir /var/www/site2;         uwsgi_param uwsgi_script wsgi;     } } 

whatever site hit first 1 stuck displaying, if goto site2 first can't ever see site1. thoughts on why uwsgi vhost setting seems not workin?

the problem ending being using ini config file results in uwsgi running in single interpreter mode. exact same config in xml allows work correctly. uwsgi developer not case in future versions.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -