configuring apache for mobile browsing
There are times when you either want or need to download something onto your cellphone, and the most convenient way to do it would be using a normal webserver (website) rather than digging out a data cable, bluetooth adapter, or using the IR port. Indeed, you may even be on the road and only have downloading as an option.
If you run an Apache webserver (and I’m sure others, but I only ever use Apache) it’s easy as pie — all that you need to do is add a .htaccess file with the right options into the mobile directory. For all the BlackBerry users out there, this is what is referred to as OTA, or Over-The-Air installation.
In said subdirectory, create a file named .htaccess (note the leading . ) and put the following inside:
# Index options
IndexOptions +DescriptionWidth=* +SuppressDescription +SuppressIcon
# Symbian
AddType application/vnd.symbian.install .sis .sisx
# Basic WML
AddType text/vnd.wap.wml .wml
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlscriptc .wmlsc
AddType image/vnd.wap.wbmp .wbmp
# J2ME
AddType application/java-archive .jar
AddType text/vnd.sun.j2me.app-descriptor .jad
# BlackBerry
AddType application/vnd.rim.cod .cod
# Certs
AddType application/x-pkcs12 .p12
AddType application/x-x509-ca-cert .crt
AddType application/x-x509-ca-cert .der
AddType application/x-x509-ca-cert .cer
# PRC files (eBook)
#AddType application/x-mobipocket-ebook .prc
AddType application/octet-stream .prc
# APK (G1 Android) files
AddType application/vnd.android.package-archive .apk
…and you’re done! Upload all your files into this folder, or any subfolder, and Apache will properly send the MIME type to your handset when delivering up the content. In the most common usage – JAD and JAR files – you would download the JAD file first, which then triggers the JAR download by your handset automagically.
[...] it up to add BlackBerry info, mainly COD file type) to help you host your own installers and such: configuring apache for mobile browsing « rivviepop phantom This’ll let you host those JAD/JAR files to do your own OTA installs. I have plans (don’t we all?) [...]
Installing apps - .jad vs. .ali/.alx - BlackBerryForums.com : Your Number One BlackBerry Community
2007-01-20 at 13:32
[...] here on BBF. I’ve also got a small blog article I wrote about it as well, if you’re interested: configuring apache for mobile browsing « rivviepop phantom Note to lurkers: nothing in /bb/ota/ juicy, it’s all free stuff you could get from somewhere else. [...]
What is a good Mp3 player for Blackberry? - Page 3 - BlackBerryForums.com : Your Number One BlackBerry Community
2007-02-24 at 10:10
[...] offer it on your own webserver for download, take a read of a blog post of mine to help you out: configuring apache for mobile browsing « rivviepop phantom It’s really easy and would be best for you to get working, that way you can update the JAD and COD [...]
MyAlarm Application - BlackBerryForums.com : Your Number One BlackBerry Community
2007-07-03 at 12:17
[...] ccdial.cod files on your webserver that is properly configured to serve up OTA installations. Click here for help setting up your Apache. NOTE: I will not be hosting this in my public OTA space, as it’s [...]
Free BlackBerry Software Download - only 24 hours available - BlackBerryForums.com : Your Number One BlackBerry Community
2007-08-16 at 12:05
[...] about to start configuring away (gotta dig up all that info)… == (*) if you have Apache handy: configuring apache for mobile browsing « rivviepop phantom [ Linux & BlackBerry ] [...]
Anyone using Funambol's SyncML client? - BlackBerryForums.com : Your Number One BlackBerry Community
2007-09-23 at 11:53
[...] it. You can read more at a blog entry of mine (it’s also somewhere here on BBF if you search): configuring apache for mobile browsing « rivviepop phantom Here’s a new JAD for 0.30.0 MiniMoni.jad [...]
MiniMoni - Traffic monitor - Beta testers welcome - BlackBerryForums.com : Your Number One BlackBerry Community
2007-12-16 at 13:09
[...] know what (or who) it is causing the problem. Help with setting up your own webserver to use: configuring apache for mobile browsing « rivviepop phantom [ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/ ¡esta usted [...]
Solutions for Backing Up Blackberry - BlackBerryForums.com : Your Number One BlackBerry Community
2008-03-04 at 12:44
[...] card, why not just do that?). You can read a blog post of mine on how to configure Apache here: http://rivviepop.wordpress.com/2006/…bile-browsing/ This will serve up OTA (.jad, .jar, .cod, etc.) files correctly. [ Linux & BlackBerry ] [...]
FreeLight 1.0 - BlackBerryForums.com : Your Number One BlackBerry Community
2008-09-09 at 10:38
I can suggest to use also a module for manage the device fragmentation problem. It’s call “Apache Mobile Filter”, for more info: http://www.idelfuschini.it/apache-mobile-filter.html
ifuschini
2009-02-10 at 05:40
Just an update of Apache Mobile Filter.
Now is downloadable Version 2.0, the greate news is that you can detect the device and have there capability information as environment variable.
So you can use this solution with any web solution (PHP, JSP, Ruby, perl etc.)
For more info:
http://www.idelfuschini.it/apache-mobile-filter-v2x.html
ifuschini
2009-06-02 at 11:50