This tutorial will help you create a self-signed SSL certificate and configure Nginx to use it on Ubuntu 18.04.
How To Install the LLMP Stack on Ubuntu 18.04 VPS Server or Dedicated Server
This tutorial shows you how to install Lighttpd, MySQL or MariaDB, and PHP, Python, or Perl on an Ubuntu 18.04 VPS or dedicated server.