configure apache aws linux 2 code example Example: how to configure httpd in amazon ec2 instance [ec2-user ~]$ sudo yum update -y