amazon ec2 – Why my nginx redirection doesnt work

I`m trying to do redirection via Nginx to

I`m trying with

server {
  listen      80;
  return      301;

But I stil get error server IP address could not be found.

I’m usin ec2 (where I install SSL ) and I’m using Route53 for my domain too ..