-3

.plist and .ipa are files for iOS enterprise distribution of Apps.

I want to host them on my enterprise server for distribution. However, the server used does not allow these kinds of files.

I have uploaded them to the directory, when I try to download them I get the following error:

enter image description here

If I only change the extension to "txt", "rar" or any popular extensions. The file gets downloaded with no errors.

What is the problem? Is it a security measure for Windows server or just a blacklist/whitelist of files?

How to solve it.

Windows Server 2008

malhobayyeb
  • 105
  • 1
  • 4

1 Answers1

7

You need to add a MIME type mapping for the .ipa and .plist extensions:

appcmd set config "Website name" /section:staticContent /+"[fileExtension='.plist',mimeType=' application/xml']"
appcmd set config "Website name" /section:staticContent /+"[fileExtension='.ipa',mimeType=' application/octet-stream']"

appcmd.exe is located in %windir%\System32\inetsrv\

Mathias R. Jessen
  • 24,907
  • 4
  • 62
  • 95