Hi, I have a website hosted on IIS7 on 2008R2 server
I have set the binding as follows:
Protocol: Http
IP Address: *
port: 80
Hostname: mywebsite.com
Now I mapped servers ip address to mywebsite.com in the hosts file on the server. However I am not able to access the site from the server using http://mywebsite.com, it asks for username/password and even if I give valid username\password authentication fails.
However if I access the site from another machine in LAN (I added the mapping in this machines hosts file) I am able to access the website using http://mywebsite.com.
Can someone help me with what is going wrong. Thank you.
sriharsha_v
1 Post
Not able to access site with hostname on 2008R2 Server
May 31, 2012 07:28 PM|LINK
I have set the binding as follows:
Protocol: Http
IP Address: *
port: 80
Hostname: mywebsite.com
Now I mapped servers ip address to mywebsite.com in the hosts file on the server. However I am not able to access the site from the server using http://mywebsite.com, it asks for username/password and even if I give valid username\password authentication fails.
However if I access the site from another machine in LAN (I added the mapping in this machines hosts file) I am able to access the website using http://mywebsite.com.
Can someone help me with what is going wrong. Thank you.
Thanks and Regards Sri Harsha
owjeff
680 Posts
Re: Not able to access site with hostname on 2008R2 Server
Jun 02, 2012 04:12 PM|LINK
You're likely running into this loopback check issue when browsing locally:
http://support.microsoft.com/kb/896861
I would recommend disabling it via method #2 decribed in that KB article.
OrcsWeb: Managed Windows Hosting Solutions
"Remarkable Service. Remarkable Support."
kctt
654 Posts
Re: Not able to access site with hostname on 2008R2 Server
Jun 06, 2012 03:54 AM|LINK
When you say you give valid username/password, is it a windows user account?
Does the account have permission on website folder. Check login with administrator account.
In IIS manager you can configure application pool to use Network Service identity and add Network service permission on website home folder.