.htacess untuk OTA
Beberapa minggu yang lalu gw dapet tugas bikin OTA server untuk hape. Apache sudah siap, php script untuk deteksi hape udah, file2 jad dan jar sudah. Tapia pa yang terjadi.. ketika PHP script mendeteksi jenis hape dan menawarkan *.jad untuk di donlot.. ternyata Internall server error..
Hal ini mungkin disebabkan olehkonfigurasi apache gw yang standar banget.. setelah googling dapet deh tutorial untuk membuat file sakti bernama .htaccess
Jreng.. semua lancar.. berikut isi file tsb :
# Index options
IndexOptions +DescriptionWidth=* +SuppressDescription +SuppressIcon# J2ME
AddType application/java-archive .jar
AddType text/vnd.sun.j2me.app-descriptor .jad# 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# 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
File .htaccess ini ditaro di web folder OTA.. besok besok klo internal server error lagi.. masukin ini aja dah..
Sengaja ditulis disini biar gw gak susah nyari lagi⦠gak mungkin gw masih apal isi file ini 2 bulan lagi..
Salam wangi..
Filed under: Weblogs | 2 Komentar
wah wah wah … mantap.
mantap apa nih.. hehheh..