Configure IIS to support http://localhost

iis

I am running IIS on Windows 2012 R2. For some reason, when I start IIS, http://localhost/link does not load , but http://{my machine name}/link does work.

That tells me my IIS started and listening on port 80. And able to handle 'link' as url path. But why would http://localhost/link does not load? I get a 503 error.

And when I open IIS manager, I see under 'Start Page', my 'machine name' and when I move my mouse over the machine name', it said 'http://localhost'. But when I load 'http://localhost' in IE, I get a 503.

Can you please tell me where in the IIS configure that? Or what should I check to investigate this issue.

I find a rule like this:

Reserved URL : http://localhost:80/
User: aUser
Listen: Yes
Delegate: No
SDDL: D:(A;;GX;;;S-1-5-21-124525095-708259637-1543119021-1467807)

Can I find out what does this rule suppose to do? before I removed it?

Best Answer

Try entering in Command Prompt (cmd) the following command :

netsh http show urlacl

This will list all URLs that are reserved (disallowed) for handling by specific programs. This list takes precedence over any other rule.

You might find some URL that relates to localhost, or to 127.0.0.1, or which will look like http://+:80/.

In that case, delete the rule via :

netsh http delete urlacl url=http://+:80/
Related Question