Setting up Nginx-Apache Reverse Proxy, PHP, & MariaDB with SSL on EC2/Lightsail with Amazon Linux Final setup should consists of: NGINX (reverse proxy & static contents) Supports SSL (Let's Encrypt). Supports multiple domains, 1 IP. Apache 2.4 (Dynamic content: PHP) PHP 7.1 MariaDB 10.1