Ted Patrick > { Events & Community } > Adobe Systems


AIR - Adding *.air to Apache

In posting an .AIR file to my site last night, several people complained about the lack of a MIME type. I just added the mime type support for .AIR files to my apache server via .htaccess.

Here is how it works:

Take a look at this sample htaccess file (note it has no "." before it). Simply save this file as ".htaccess" into any directory on an Apache server and that path will have .AIR MIME type support.

Here is the line that matters most:

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


When Apache hits an .AIR file, this will add a header automatically to the request. This will also cause the file to be processed into the AIR runtime installer when run locally given AIR's ability to integrate into MIME.

Cheers,

Ted :)

3 Responses to “ AIR - Adding *.air to Apache ”

  1. # Anonymous Anonymous

    Thanks for the advice. Very helpful.  

  2. # Anonymous Serge Jespers

    I won't complain any more... ;-)  

  3. # Blogger Ted Patrick

    Always complain! How can we get better without feedback? I read every comment, they all help.

    Ted :)  

Post a Comment



Jobs


Flex Jobs
city, state, zip


© 2008 Ted On Flash