
Learn the basics of Amazon AWS EC2 and the LEMP stack, including installing nginx, MySQL, and PHP, and hosting multiple domains on one server with Cloudflare.
Create an AWS account, launch a free tier EC2 instance, generate and convert a key pair for PuTTY, and connect to the instance using its public DNS.
Configure a security group to act as a virtual firewall by editing inbound rules in the EC2 dashboard, enabling access to the website by allowing required traffic and saving changes.
Update the Ubuntu package index, install nginx, and access the site on your EC2 instance.
Install MySQL server, secure the root account by switching from auth_socket to mysql_native_password, flush privileges, and verify the authentication method to enable standard MySQL client connections.
Install php and configure Nginx server blocks to host multiple domains. Enable the site, reload Nginx, and set listen 80, root, and index for CGI processing with FBN.
Install phpMyAdmin on Nginx and access it by linking its folder to the web server. Create a password and log in to manage databases.
Create a new site on CloudFlare, then point your domain's name servers from GoDaddy to CloudFlare and set up the domain, including propagation and linking to your Amazon EC2 instance.
Create and configure multiple nginx server block files to host subdomains on one server, then update Cloudflare DNS to point domains accordingly.
secure your website with cloudflare by selecting the flexible option, enabling ssl certificates, and turning on always use https to achieve end-to-end encryption between user and server.
Learn to use Cloudflare page rules to redirect your domain to a subdomain or another domain with a permanent 301 redirect and https enabled.
In this exciting new course, we show you how to host multiple domain names on a AWS EC2 Instance. We will show you step-by-step how to configure a EC2 instance with LEMP Stack on Ubuntu 18.04. This includes deploying a EC2 instance, installing all the components included in LEMP Stack including Nginx, MySQL, PHP and phpMyAdmin.
After you understand the foundations of server configuration, we will host multiple domains using Nginx server block configuration files, and manage it through Cloudflare.
As an extra content , I will show you how to encrypt your site and use an HTTPS protocol, using cloudflare SSL certificates very easily. We will redirect all of our traffic to www, to avoid issues with cache.