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;
    }

    location /static {
alias /usr/local/lib/python2.7/site-packages/mercurial/templates/static;
    }

    [snip ssl config]
}

--- end of nginx.conf ---


The hgweb_wsgi.py file lives inside: /usr/local/www/vhosts/hg.domain.com and contains the following:

config = "/var/db/hg/hgweb.conf"
from mercurial import demandimport; demandimport.enable()
from mercurial.hgweb import hgweb
application = hgweb(config)


The uwsgi log shows:

ImportError: No module named hgweb_wsgi
unable to load app mountpoint=hg.domain.com|


I'm not sure why it is unable to find the module and I'm not sure what it means by an "app mountpoint". Thank you in advance for your time and consideration.

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to