Edit config file of Apache on Amazon Linux

Find the path of httpd.conf

ps -ef | grep apache
/usr/sbin/apache2 -V
Reference: http://www.commanigy.com/blog/2011/06/08/finding-apache-configuration-file-httpd-conf-location

Edit httpd.conf

sudo nano /etc/httpd/conf/httpd.conf
Reference:

Restart Apache

sudo service httpd restart