Website not working when server name is used in url, works for IP
Inetmgr->select website->Autentication-> windows Authentication-> providers-> move NTLM top save.