Configure IIS 7 to process static files through a virtual path provider

I have a virtual path provider that serves static files from my virtual file system, is it possible to configure IIS on static server files through a virtual path provider, or do I need to create my own static file handler?

+5
source share
1 answer

If I read correctly, you want to process static files using extesion pac, i.e. MyFile.pac from your virtual site.

Open IIS7 and go to your virtual site, in the function view, double-click the MIME types , then click "Add" .. and add the extension and the corresponding MIME type, for example, "text / plain".

This is an IIS way, but as you say, it can be done using a special static file handler.

(it is assumed that your static files have an extension with which they are not processed already, like many of them)

+1
source

All Articles