Mike Chambers

code = joy

Setting the mime type in your Web Server for Apollo applications

with 3 comments

From the Apollo Release Notes:

In order for client browsers to recognize an Apollo application when being downloded, the Web Server hosting the Apollo applications needs to map the following mimetype
“application/vnd.adobe.air-application-installer-package+zip”
to the Apollo extension “.air”. For example, for an Apache Web Server you will add to the AddType section:
AddType application/vnd.adobe.apollo-application-installer-package+zip .air

Note, you can do this in the web server config, or if using Apache, in the .htaccess file.

Update (8/26/08) : The mime type changed for the AIR 1.0 release.

The correct MIME type for an AIR file is:

application/vnd.adobe.air-application-installer-package+zip

For example, to set the MIME type for the Apache server, you would add the following line to your Apache configuration file:

AddType application/vnd.adobe.air-application-installer-package+zip .air

Written by mikechambers

March 18th, 2007 at 9:30 pm

Posted in General

3 Responses to 'Setting the mime type in your Web Server for Apollo applications'

Subscribe to comments with RSS

  1. Hi,

    I have included following mime mapping in web.xml for Apache Tomcat 5.5.

    air
    application/vnd.adobe.air-application-installer-package+zip

    Still, I am not able to invoke the .air file from my flex application which is
    running on tomcat webserver. It is opening the contents of .air file but not invoking the file to install on my machine.

    Can you please help me how to invoke .air from my flex application which is running on my webserver.

    - Thanks.

    sreedhar

    12 Dec 07 at 11:03 pm

  2. Someone should ask Randy to put this in the AIR doc as loads of people are going to trip up on this.

    Graeme Harker

    3 Apr 08 at 7:28 am

  3. I was hunting for the issues clients had to download our air app. Some hadn’t some had, which made it not too clear that it was a server issue.
    But where to put it on jboss? Put

    air
    application/vnd.adobe.air-application-installer-package+zip

    into …deploy->jboss-web.deployer->conf->web.xml

    Michael Renner

    7 Nov 09 at 6:50 am

Leave a Reply