Skip to content

Instantly share code, notes, and snippets.

@suhailvs
Created December 15, 2014 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suhailvs/2fb3b4f304471a284868 to your computer and use it in GitHub Desktop.
Save suhailvs/2fb3b4f304471a284868 to your computer and use it in GitHub Desktop.
Deploy Django on gevent with nginx

create a file /etc/nginx/conf.d/virtual.conf

#
# A virtual host using mix of IP-, name-, and port-based configuration
#

server {
    listen       8080;
    server_name  chat.djangoer.com;

    location / {
        root   /home/chat/;
         index  index.html index.htm;
    }
}

restart nginx: /etc/init.d/nginx restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment