.htacess untuk OTA

28Apr09

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..



2 Responses to “.htacess untuk OTA”

  1. wah wah wah … mantap.


Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s


Ikuti

Get every new post delivered to your Inbox.