For those who are already aware of the usefulness of uWSGI and Nginx, there is not much that can be explained. uWSGI is a protocol as well as an application server and provides a complete stack to build hosting services. Nginx is a reverse proxy and HTTP server that is very lightweight and capable of handling virtually unlimited requests. Nginx works seamlessly with uWSGI and provides many under-the-hood optimizations for better performance.
We will use our application from the last recipe, Deploying with Apache, and use the same app.wsgi
, setup.py
, and MANIFEST.in
files. Also, other changes made to the application's configuration in the last recipe will apply to this recipe as well.