Here are the steps.
1) Login to your EC2 instance with SSH.
2) Enable Mode Rewrite, this is just incase if it’s not enabled.
3) Go to following directory.
If you use LS command here you will see following file.
That’s the file with default apache configuration which are applied to your sites in /var/www/html folder.
4) Open this file for editing.
5) Add following lines after DocumentRoot /var/www/html line.
6) Save the file and restart the apache.
...