IIS: How to serve a file without extension?

前端 未结 3 1688
春和景丽
春和景丽 2020-12-04 20:49

I am using IIS 8 on Windows 8.1. I have an XML file an I need to have it accessed through (servername)/(path)

(pa

3条回答
  •  离开以前
    2020-12-04 21:39

    It can be done in IIS 6 as well / without using web.config, but instead using the management GUI to add a MIME type for extension . here:

    For instance, to serve a .well-known/acme-challenge token, create a virtual directory called .well-known, and have it take its contents from a physical directory (that cannot have names with leading dots in windows). Then add a text/plain MIME type for the extension . in this directory, and you can manually acquire new letsencrypt certificates for a domain that is currently served by an old IIS.

提交回复
热议问题