Update Your AIR MIME Type
January 8th, 2008
Many of you have probably been developing AIR (formerly Apollo) applications since the initial public release. You probably set the proper MIME Type on your server to handle the ".air" files. However, the MIME Type is different than it was when AIR was first released. You might want to take a minute to ensure that you have the correct MIME Type on your server. Here is the correct MIME Type:
application/vnd.adobe.air-application-installer-package+zip
If you haven't added the MIME Type on your server, you will need to add it so that ".air" files can be served properly from your web server. The instructions below should help you add it.
Apache
In Apache, you will need to edit your httpd.conf file. There will be many "AddType" declarations in the file. You simply need to add the following line to that list of declarations:
-
AddType application/vnd.adobe.air-application-installer-package+zip .air
Code Example 1 - Adding AIR MIME Type to Apache
Lighttpd
In Lighttpd you will need to edit your lighttpd.conf file. Just as in Apache there will be MIME Type declarations, but they will be inside of the mimetype.assign code block. Simply add your declaration to the end of this list. The example below demonstrates this.
-
mimetype.assign = (
-
...
-
".air" => "application/vnd.adobe.air-application-installer-package+zip"
-
)
Code Example 2 - Adding AIR MIME Type to Lighttpd
IIS
To add the MIME Type to IIS, you will need to do the following steps. All of these steps assume that you are in the properties window for one of the sites you have defined in IIS.
- Select the HTTP Headers Tab.
- Select "File Types" and click "New Type"
- For the extension enter ".air" and for the associated content type enter application/vnd.adobe.air-application-installer-package+zip



Leave a Reply