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
Post a Comment