IIS Server returns blank page instead of 404 error

Ron E Ball 0 Reputation points
2024-01-16T23:23:53.4833333+00:00

I have created an IIS (internal intranet) website (very simple). Default web page is marked to open "index.asp" if found. In my "test folder", there are NO files ... "https://santaclara.ca.kp.org/test/" is empty.

  1. If I go to the URL like this ...
    "https://santaclara.ca.kp.org/test/index.htm"
    I get a 404 Error page back (this is expected and correct.)
  2. If I go to the URL like this ...
    "If I go to the URL like this ... "https://santaclara.ca.kp.org/test/""
    I just get a blank (no contents) page displayed in my browser. I expected to get a 404 error page back ...

What do I need to configure in IIS so that the second URL example also give a 404 error?

Windows development Internet Information Services
Windows for business Windows Server User experience Other
{count} votes

1 answer

Sort by: Most helpful
  1. Thameur-BOURBITA 36,261 Reputation points Moderator
    2024-01-16T23:32:55.0966667+00:00

    Hi @Ron E Ball You should configure index.html as default document. Go to the folder test and click on Default Document null

    After that you select index.html or another document null

    https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/www-administration-management/configure-default-document-iis Please don't forget to accept helpful answer


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.