Paster contains the WSGI server originally incorporated within CherryPy (see http://pythonpaste.org/script/module-paste.script.wsgiserver.html). Funnily enough, this is a pretty hot contender amongst other Python WSGI webservers (see http://nichol.as/benchmark-of-python-web-servers) : Maybe not the best, but because of its ease of set-up (working out-of-the-box for Pyramid and Pylons) it is extremely compelling.
Combining it with NGINX makes for a very easy-to-configure, fast and scalable set-up. Here goes…
Paste reads its configuration from the .INI file :
And the following for nginx configuration (in /etc/nginx/conf.d/SITENAME.conf) :
In order for the cherrypy server to serve WSGI over a UNIX socket file (rather than a UNIX port) the code needs a small modification (so that socket options aren’t set on the ):
As an alternative to the file socket thing, just use the following syntax in the .INI file :