So setting an AWS Web Server took me a bit of time because it was my first time setting up a web server on AWS. I decided to setup all of materialsexmachina.com on AWS just to make everything easy.
Registering a domain name is pretty straight forward using Amazon's Route 53 service. This is pretty straight forward, pick a domain name, see if it is available and then purchase the domain.
Amazon requires a confirmation email, so if you don't reply to the confirmation email, the DNS registration will not go through until this happens.
Use these directions to setup your DNS with AWS. Ignore Step 1 where you setup an elastic beanstalk webserver, and just go into Step 2.
The AWS documentation is somewhat difficult to navigate. Here I just provision an Elastic Compute Cloud (EC2).
www.DNSDOMAINNAME.com
to the obfuscated hostname that is provided.1. Setup
sudo apt-get update
sudo apt-get install apache2
2. Configuration
/etc/apache2/apache2.conf
/etc/apache2/ports.conf
Check to see if you can connect to the set webserver
## Start command ##
systemctl start apache2.service
## Stop command ##
systemctl stop apache2.service
## Restart command ##
systemctl restart apache2.service