Files
velopack/docs/2.3-Distributing-IIS.md
Ken Bailey 49b6b866bb Reformatting of docs with a Getting Started and Advanced topics section.
Removed /specs help files to avoid confusion.
2015-12-23 22:54:50 -07:00

974 B

Squirrel.Windows / 2. Advanced Usage / 2.3 More Distributing

2.3 Distributing: Using IIS

If you use Microsoft IIS to distribute the necessary Squirrel files, you must provide a custom Web.config file as described below.

Hosting on IIS

All versions of IIS (including Microsoft Azure PaaS) deny serving files when the extension MIME type is unknown. If you are hosting your updates in this manner then you will need to add a Web.config to your downloads repository as follows:

~/downloads/Web.config File

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <staticContent>
      <mimeMap fileExtension=".nupkg" mimeType="application/zip" />
      <mimeMap fileExtension="." mimeType="text/plain" />
    </staticContent>
  </system.webServer>
</configuration>

Return: 2.3 More Distributing