Configure web server to handle .air files

CFML,Development 21 July 2009 | 19 Comments

Recently over at the website of our open source Digital Asset Management company Razuna Ltd., we published a desktop application that was build with Adobe AIR.

Now, while we could easily link to the AIR application, which all end with an extension of “.air”, within the web page it would prompt the user to install the application only under FireFox (both Windows and MacOS X), but users with Safari or Internet Explorer where prompted to download a “.zip” file.

In order to fix this, we had to change the mime type configuration of the web server itself. Now, we figured that there are different solution to this, depending on your web server;

For Apache

Adding the mime type for .air extensions with Apache requires you edit the file “/etc/mime.types” (on RedHat/CentOS) and adding the line:

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

Make sure to reboot Apache to apply the changes.

For Tomcat

Adding mime types for your Tomcat installation requires you to edit the file “tomcat/conf/web.xml” and adding a new “mime-mapping” like;

<mime-mapping>
<extension>air</extension>
<mime-type>application/vnd.adobe.air-application-installer-package+zip</mime-type>
</mime-mapping>

Make sure to restart Tomcat to apply the change.

Using .htaccess

If you can’t access the server config files or you simply don’t want to, then the other option is to simply add the mime type to your .htaccess file.  Add the following line to it;

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

Save it and you should be all set to make it possible to launch the Adobe AIR installer ones your .air file is downloaded.

Tagged in , , , , , , , , , , , ,

19 Responses on “Configure web server to handle .air files”

  1. George Bush says:

    Estium http://11111kljbghy.com gavel 222222 [url=http://33333hdhkji.com]333333[/url] Itatana

  2. Click says:

    Espinthas order klonopin, goals, cheap zoloft, orbit, buy meridia no prescription, xkqnra, lorazepam, held, vicodin, gogh, Antyron

  3. URL says:

    Espinthas meridia, govt, generic nexium, sub, ambien, neck, sumatriptan, urn, wellbutrin generic, pablo, Dalundias

  4. Homepage says:

    Danenton valium, hutch, wellbutrin generic, yu, buy imitrex, raced, zolpidem, mature, finasteride, 23rd, Dalundias

  5. Site says:

    Ethandus <a href="#top”>http://my.speedtv.com/wbailey, frkbhi, <a href="#top”>http://my.speedtv.com/bhuson, sucks, <a href="#top”>http://my.speedtv.com/dehunt, hand, <a href="#top”>http://my.speedtv.com/ktrush, funny,<a href="#top”>http://my.speedtv.com/daikens, disco, Gallarctana

  6. Main says:

    Mytosova <a href="#top”>http://my.speedtv.com/ktrush, visiting,<a href="#top”>http://my.speedtv.com/daikens, poe, <a href="#top”>http://my.speedtv.com/wbailey, structural, <a href="#top”>http://my.speedtv.com/dehunt, swab, <a href="#top”>http://my.speedtv.com/bhuson, jostle, Panileos

  7. Tamisha Whit says:

    That’s great. I’m from London and see the same attitude. Anyway, I’m gonna back before too long.

  8. All very true, but I don’t take that view myself. I will stay the more conventional view. But I certainly support your right to say it. Fascinating anyway.

  9. Thank you for this kind of a excellent blog. Wherever else could one get this kind of information written in such an incite full way? I have a presentation that I am just now working on, and I have been looking for this sort of information.

  10. Ooohh, I am incredibly interest within your domain. If I set up a single web site utilizing this domain, I can earn 100-200 USD daily. Your domain is extremely good. Should you don’t desire to sell this domain, I can cooperate with you on a condition that you simply share 50% income with me. :D

  11. Wow, I never new that, much appreciated.

  12. Cleva says:

    I’m so ill on the “regime” hoping to command our life. He’s his hand in every thing but can’t take care of to discover his personal beginning certificate.

  13. Thanks for this brilliant article. I am delighted after reading this. Thank you!

  14. Thanks for this post. It’s very useful.

  15. Eduardo Boos says:

    i thought this was a really great post to read. i’ll check back for new posts by you!

Leave a Reply