Skip to content


Add in "Install guide" describing about nginx with uWSGI #139

freem4n opened this Issue · 2 comments

3 participants


Add to describing about nginx with uWSGI

Nginx config:

server {
  # Change this if you want to serve your application on another port
  listen 80;

  # Replace this with your domain name

  # You can use virtual directory like '/apps/' here, but remember that
  # you should matching 'urls' defined in your application file
  location / {
    include uwsgi_params;

    # This should match the 'socket' entry of your uwsgi.xml

    # This is the absolute path to the folder containing your application
    uwsgi_param UWSGI_CHDIR /var/www/apps;

    # This is actually not necessary for our simple application,
    # but you may need this in future
    uwsgi_param UWSGI_PYHOME /var/www/apps;

    # This is the name of your application file, minus the '.py' extension
    uwsgi_param UWSGI_SCRIPT index;

And add this line to the end of application .py file:

application = app.wsgifunc()

I believe that snippet is from:

That link has more good information for deploying on Ubuntu.


thx i will see if it works on my site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.