Using Apache or Ngnix I always create development sites based on real projects such as http://project1.loc which, after adding to my .hosts file, t
http://project1.loc
.hosts
Either use a real fully qualified domain name (like dev.yourdomain.com) that pointing to 127.0.0.1 or try editing the proper hosts file (usually /etc/hosts in *nix environments).
dev.yourdomain.com
127.0.0.1