IIS: How to serve a file without extension?

前端 未结 3 1689
春和景丽
春和景丽 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:50

    Changing the configurations by hand can be risky at times. IIS provides a methodology to update the MIME-types through IIS manager also as below. The snapshots are for IIS v10 installed on a windows 10 box:

    1. Go to MIME Types feature of the virtual directory of your website:

    1. Set up the mime type to support all files without extension :

    These steps effectively saves the changes to web.config of your website or virtual directory (under your website) as suggested by @PeterHahndorf in his post.

提交回复
热议问题