.well-known directory served only from one host-header iis8.5RSS

2 replies

Last post Jan 10, 2019 07:44 AM by Jalpa Panchal

  • .well-known directory served only from one host-header iis8.5

    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:

    web1.website.com :80

    web2.website.com :80

    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

  • Lex Li
    IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: .well-known directory served only from one host-header iis8.5

    Jan 10, 2019 07:44 AM|Jalpa Panchal|LINK

    Hi e1ny,

    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.



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.