Tutorials

Follow along with one of our 4128
development and sysadmin tutorials.

363 Tutorials
  • Tutorial

    How To Host a Website Using Cloudflare and Nginx on Ubuntu 20.04

    In this tutorial you will secure your website served by Nginx with an Origin CA certificate from Cloudflare and configure Nginx to use authenticated pull requests. The advantages of using this setup are that you benef...
    By anondon Nginx Security Ubuntu 20.04 DNS
  • Tutorial

    How To Set Up a Video Streaming Server using Nginx-RTMP on Ubuntu 20.04

    There are many use cases for streaming video. Service providers such as Twitch have become very popular for handling the community management aspects of streaming, and free software such as OBS is widely used for comb...
    By Alex Garnett Ubuntu Ubuntu 20.04 Nginx
  • Tutorial

    How To Install Nginx on Ubuntu 20.04

    Nginx is one of the most popular web servers in the world and is responsible for hosting some of the largest and highest-traffic sites on the internet. In this guide, we'll discuss how to get Nginx installed on your U...
    By Erin Glass Nginx Ubuntu 20.04 Ubuntu
  • Tutorial

    How To Set Up Nginx with HTTP/2 Support on Ubuntu 20.04

    HTTP/2 is a new version of the Hypertext Transport Protocol, which is used on the Web to deliver pages from server to browser. This tutorial will help you set up a fast and secure Nginx server with HTTP/2 support.
    By Brian Hogan, Alex Garnett Let's Encrypt Nginx Ubuntu Ubuntu 20.04
  • Tutorial

    How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 18.04

    Django is a powerful web framework that can help you get your Python application or website off the ground. Django includes a simplified development server for testing your code locally, but for anything even slightly...
    By Justin Ellingwood Django Python Python Frameworks Databases PostgreSQL Nginx Ubuntu 18.04
  • Tutorial

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

    In this guide, you will build a Python application using the Flask microframework on Ubuntu 18.04. The bulk of this article will be about how to set up the Gunicorn application server and how to launch the applicatio...
    By Justin Ellingwood, Kathleen Juell Python Frameworks Python Nginx Ubuntu Ubuntu 18.04
  • Tutorial

    How To Move an Nginx Web Root to a New Location on Ubuntu 20.04

    On Ubuntu, by default, the Nginx web server stores its documents in /var/www/html, which is typically located on the root filesystem with the rest of the operating system. Sometimes, though, it’s helpful to move the d...
    By Melissa Anderson, Alex Garnett Block Storage Nginx Storage Ubuntu Ubuntu 20.04
  • Tutorial

    How To Secure Nginx with Let's Encrypt on Ubuntu 18.04

    In this tutorial, we will show you how to use Let's Encrypt to obtain a free SSL certificate and use it with Nginx on Ubuntu 18.04. We will also show you how to automatically renew your SSL certificate. If you're runn...
    By Hazel Virdó, Kathleen Juell Let's Encrypt Nginx Ubuntu 18.04
  • Tutorial

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

    In this guide, we will be setting up a simple Python application using the Flask microframework on Ubuntu 18.04. The bulk of this article will be about how to set up the uWSGI application server to launch the applicat...
    By Justin Ellingwood, Kathleen Juell Python Python Frameworks Nginx Ubuntu Ubuntu 18.04 Flask
  • Tutorial

    How To Set Up an ASGI Django App with Postgres, Nginx, and Uvicorn on Ubuntu 20.04

    In this guide, you will set up an ASGI (Asynchronous Server Gateway Interface) Django app on Ubuntu 20.04. You'll set up a PostgreSQL database, configure a Gunicorn application server paired with Uvicorn (an ASGI impl...
    By Mason Egger, Erin Glass Development Nginx Python PostgreSQL Python Frameworks Databases Ubuntu 20.04 Django
  • Tutorial

    How To Install Linux, Nginx, MySQL, PHP (LEMP stack) on Ubuntu 18.04

    This tutorial details the process for installing and configuring the components that constitute a LEMP stack on an Ubuntu 18.04 server, including Nginx, MySQL, and PHP. It also includes instructions for testing that t...
    By Justin Ellingwood, Mark Drake LEMP Databases Nginx MySQL PHP Ubuntu 18.04
  • Tutorial

    How To Install Nginx on Ubuntu 18.04

    Nginx is one of the most popular web servers in the world and is responsible for hosting some of the largest and highest-traffic sites on the internet. It is more resource-friendly than Apache in most cases and can b...
    By Justin Ellingwood, Kathleen Juell Nginx Ubuntu 18.04 DigitalOcean Droplets
  • Tutorial

    How To Create a Self-Signed SSL Certificate for Nginx in Ubuntu 20.04

    In this guide, we will show you how to set up a self-signed SSL certificate for use with an Nginx web server on an Ubuntu 20.04 server.
    By Brian Boucheron, Jeanelle Horcasitas Nginx Security Ubuntu Ubuntu 20.04
  • Tutorial

    How To Set Up Laravel, Nginx, and MySQL With Docker Compose on Ubuntu 20.04

    This tutorial covers building a web application using the Laravel framework with Nginx as the web server and MySQL as the database all inside Docker containers along with configuration files for PHP, MySQL, and Nginx.
    By Faizan Bashir Ubuntu Ubuntu 20.04 Laravel PHP System Tools Docker Nginx MySQL Databases Container
  • Tutorial

    Understanding Nginx Server and Location Block Selection Algorithms

    Nginx is one of the most popular web servers in the world. In this guide, we will discuss how Nginx selects the server and location block that will handle a given client's request. We will go over the algorithm in p...
    By Justin Ellingwood Nginx Conceptual
  • Tutorial

    How to Install and Configure Laravel 8 with Nginx (LEMP) on Ubuntu 18.04

    Laravel is an open source PHP framework that provides a set of tools and resources to build modern PHP applications. In this guide, you'll install and configure a new Laravel application on an Ubuntu 18.04 server, usi...
    By Erika Heidi PHP PHP Frameworks LEMP Nginx Ubuntu 18.04 Laravel
  • Tutorial

    How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 16.04

    When using the Nginx web server, server blocks (similar to the virtual hosts in Apache) can be used to encapsulate configuration details and host more than one domain off of a single server. In this guide, we'll discu...
    By Justin Ellingwood Getting Started Nginx Ubuntu Ubuntu 16.04
  • Tutorial

    How To Deploy a Go Web Application with Docker and Nginx on Ubuntu 18.04

    In this tutorial, you will deploy an example Go web application with gorilla/mux as the request router and Nginx as the web server, all inside Docker containers, orchestrated by Docker Compose. You'll use nginx-proxy ...
    By Savic Go Docker Nginx Deployment Let's Encrypt Ubuntu 18.04
  • Tutorial

    How To Implement Browser Caching with Nginx's header Module on CentOS 8

    Nginx's header module can help you accomplish browser caching. You can use this module to add any arbitrary headers to the response, but its major role is to properly set caching headers. In this tutorial, we will use...
    By Mateusz Papiernik Nginx CentOS CentOS 8
  • Tutorial

    How To Implement Browser Caching with Nginx's header Module on Ubuntu 20.04

    Nginx's header module can help you accomplish browser caching. You can use this module to add any arbitrary headers to the response, but its major role is to properly set caching headers. In this tutorial, we will use...
    By Mateusz Papiernik Nginx Ubuntu