Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS web site not accessible from the hosted server

Tags:

iis-8

I hosted a website in IIS 8 and binding with a proper hosting name (subdomain.xyz.com). It is working from my local machine, but it is not working when I access from hosted server. It is showing authentication window, even I provide a valid credentials it is showing again and again.

The server is hosted in Azure. Server: Windows Server 2012 R2

like image 847
Durga Prasad Avatar asked Nov 18 '15 06:11

Durga Prasad


People also ask

How do I give access to a website in IIS?

To grant a user permission to a site or an application, select the site or application and then open the IIS Manager Permissions feature to configure the users who are allowed to connect to that site or application.

How do I expose an IIS website outside the domain?

You'll need to port forward port 8080 from your firewall/router to the server. If you want external users to connect to the web site by name then you'll need to purchase and register a domain name. You'll need to find a DNS host for your DNS records for the domain. Many registrars offer this service at no cost.


1 Answers

It is because NAT loopback, you can try to use internal ip if you access from hosted server. if you want to access using your hosting name, make sure to point it inside "hosts" file.

C:\Windows\System32\drivers\etc\hosts

add this line

127.0.0.1 subdomain.xyz.com

so basically what hosts file do is, it actually point to your localhost every time you enter subdomain.xyz.com in your browser.

like image 159
Tengku Fathullah Avatar answered Dec 26 '22 10:12

Tengku Fathullah