apache config <directory example linux amazon 2 httpd.conf
Example 1: how to configure httpd in amazon ec2 instance
[ec2-user ~]$ sudo service httpd start
Example 2: how to configure httpd in amazon ec2 instance
[ec2-user ~]$ sudo yum update -y
[ec2-user ~]$ sudo service httpd start
[ec2-user ~]$ sudo yum update -y