Hosting apk files on GoDaddy shared Windows servers

Written on:January 15, 2012
Comments
Add One

Another joy of GoDaddy hosting. Have you ever tried to host an apk file to allow someone to install your Android application? Well on the GoDaddy Windows servers the file will always come up as not found. Well there is a fix. Just add a web.config file to your apk file directory with this text:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".apk"
                mimeType="application/vnd.android.package-archive" />
        </staticContent>
    </system.webServer>
</configuration>

Leave a Comment