HTTP Error 404. The requested resource is not found. - on new IIS server using localhost

mdodge 21 Reputation points
2022-05-16T20:58:58.353+00:00

We have created a new virtual server running Windows Server 2016 on our network. I have installed IIS 10 correctly to the best of my knowledge. I have created a new site in IIS running on the default app pool. I have the physical path set correctly to the folder of my website and I have a basic index.html file in there with some html boilerplate code. Now when I go to localhost in my browser it just gives the error of "HTTP Error 404. The requested resource is not found." I have both the site and the app pool running. I have restarted/recycled both. I have searched, Google, Stack Overflow, and this site for ideas. I tried several of the answers provided to no avail. I am fairly green with IIS. If someone can at least give me some direction of what things to check for, that would be great.
Thanks
Mike

Windows development Internet Information Services
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Wu-MSFT 7,561 Reputation points Microsoft External Staff
    2022-05-17T02:07:15.627+00:00

    @mdodge

    I have the physical path set correctly to the folder of my website and I have a basic index.html file in there with some html boilerplate code.

    Please check if you have set a default document, If not, set it according to this documentation: default document.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.