IIS 7 and Above
.well-known directory served only from one host-header iis8.5
Last post Jan 10, 2019 07:44 AM by Jalpa Panchal
Jan 09, 2019 04:46 PM|e1ny|LINK
Hi All: Perplexing issue here. I have a directory structure like:
and in IIS i have a website set up with the root pointing at root with multiple hostheaders:
I set up a virtual directory in iis:
.well-known --> well-known
If I place a file like "me.txt" in the well-known directory, I can view it in a browser using:
but I get a 404 error if I try to view the file at the URL:
why would it work for one binding but not the other?
There is no web.config in root, and ASP and parent-paths is enabled
Jan 09, 2019 06:29 PM|lextm|LINK
Check what sub status you hit https://support.microsoft.com/en-ca/help/943891/the-http-status-code-in-iis-7-0-iis-7-5-and-iis-8-0
and then use FRT https://docs.microsoft.com/en-us/iis/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis
Jan 10, 2019 07:44 AM|Jalpa Panchal|LINK
According to your description i created a demo asp site and create virtual directory in,it work work well with dynamic binding:
In my opinion firstly you could remove site from IIS and try to host again and create virtual directory.
Check that can you access site with second hostname without error.