> Hi, > > I'm trying to set up VirtualHosting as is done here: > > http://projects.unbit.it/uwsgi/wiki/VirtualHosting > > I've tried several different configurations but I can't seem to get it > working. If someone would please be so kind as to take a look and see > what I might be doing wrong, it would be very much appreciated. > > uwsgi is started with these flags: -M -L --vhost --no-site > > Mercurial is installed system-wide and should be available to any Python > application. > > --- nginx.conf --- > > server { > listen 443; > server_name hg.domain.com; > location / { > uwsgi_pass unix:/tmp/uwsgi.sock; > uwsgi_param UWSGI_SCRIPT hgweb_wsgi; > uwsgi_param UWSGI_PYHOME /usr/local/www/vhosts/hg.domain.com; > include uwsgi_params;
UWSGI_PYHOME set what we call "dynamic virtualenv". This means your pythonpath will be something like /usr/local/www/vhosts/hg.domain.com/lib/python2.x/site-packages You'd better to use UWSGI_CHDIR /usr/local/www/vhosts/hg.domain.com or add /usr/local/www/vhosts/hg.domain.com to the pythonpath with --pp /usr/local/www/vhosts/hg.domain.com in the command line -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
