How To Serve Flask Applications with uWSGI and Nginx

In this guide, you will build a simple Python application using the Flask microframework. The bulk of this article is about setting up the uWSGI application server launching the application, and configuring Nginx to act as a front-end reverse proxy. Choose your server’s operating system below to get started.

CentOS

7

How To Serve Flask Applications with uWSGI and Nginx on CentOS 7

Learn How To Serve Flask Applications with uWSGI and Nginx on CentOS 7

Ubuntu

22.04

How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 22.04

Learn How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 22.04
20.04

How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 20.04

Learn How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 20.04
18.04

How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 18.04

Learn How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 18.04
16.04

How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 16.04

Learn How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 16.04
14.04

How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 14.04

Learn How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 14.04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.