IIS website keeps showing the default page

iisweb-server

I have configured a website within IIS 8 and I can't seem to get it to serve webpages from the physical path I specified.

My bindings are:

http:*:80:www.domain.com,http:*:80:domain.com

The website returns a 404 when accessed from domain.com, yet a 500 error when accessed from http://www.domain.com. I enabled the "failed request trace" log, but IIS isn't writing anything to the folder.

It seems that when domain.com is accessed, it simply defaults to the "default website", which is binded to *:80. However, http://www.domain.com returns a 500 error (and I don't see any logs with more info).

The folder that the documents should be served from is set to read/write/execute and is located on the C:\ drive. I'm baffled, any ideas?

Thank you in advance

Best Answer

Do you want to have www.domain.com and domain.com showing the same website? If yes why do you have 2 bindings for that?

I would create 2 A-Records that will lead www.domain.com and domain.com to the same IP-address.

http "*" All Unassigned 80 YOUR_IP should to the rest for you then.

Check your ssl-settings. If you have the ssl-settings on "require SSL" you would get the 404 error.

Hope this helps!