[GitLab on AWS ]Can't Browse to the hostname and login

I just installed gitLab on AWS ubuntu server.

1. ifconfig get my server IP 127.XX.X.XX

2. change /etc/gitlab/gitlab.rb external_url "http://127.XX.X.XX"

3. sudo gitlab-ctl reconfigure/restart

then i open safari and key 127.XX.X.XX, it doesn't have login screen

I use curl –s whatismyip.akamai.com get external ip 54.250.XXX.XX then try it and still not work