0

I am facing an issue with IIS v10 on Windows Server 2016. I recently added a new website to my IIS configuration, but when I try to access the website through a browser, instead of seeing the expected webpage, I am presented with a list of files and directories.

Here's what I have tried so far:

I changed the application pool associated with the new website. I ensured that the necessary files for the website are located in the correct directory within the webroot. I verified that the website's bindings are correctly configured, including the hostname and port settings. Despite these efforts, I am still unable to get the website to display the intended webpage. I suspect that there might be some configuration settings or additional steps that I am missing.

Could you please provide guidance on how to troubleshoot and resolve this issue? Are there any specific settings within IIS or Windows Server 2016 that I should check or modify to ensure that the website displays the correct content instead of the list of files?

Any help or insights you can provide would be greatly appreciated. Thank you in advance for your assistance!

enter image description here

enter image description here

When I disable directory browsing I see this error: enter image description here

gamechanger17
  • 4,025
  • 6
  • 22
  • 38
  • Find a good book and carefully study IIS and ASP.NET. You enabled directory browsing by mistake, and that's why you see this page. – Lex Li Aug 13 '23 at 17:20
  • @LexLi I mistakenly didn't enable it. Without enabling it, I encountered a 403 error. Attached is a screenshot for reference. – gamechanger17 Aug 13 '23 at 18:14
  • That's another beginners' misunderstanding of ASP.NET routing. Since there is no default page for ASP.NET MVC web apps, you need to configure one to avoid 403.14. It has been well known for more than a decade. – Lex Li Aug 13 '23 at 18:28

0 Answers0