I am using the default config while adding the specific directory with nginx installed on my ubuntu 12.04 machine.
server { #listen 80; ## listen
This is how i fixed this
sudo chmod o+x /home/ec2-user