Configure WAP + Ota in Apache

Source: Internet
Author: User
Test System: Debian Linux 3.0 + Apache 1.3.26
Address: http://ota.3322.org/wap/

Apache is an excellent network service program that provides support for WAP, or has configured WAP, at least on Debian Linux 3.0.
If you are not sure whether your Apache has configured the WAP support, you can check the Apache configuration file "mime. types ". In Debian Linux 3.0, this file is in the/etc directory, and other Linux systems may be different. If the configuration file contains the following line:

Text/vnd. WAP. WML

Congratulations! Your Apache has configured WAP.
If you don't have one, you don't have to worry about it. Just add this line.
Add the following lines if you want to complete the Configuration ):

Image/vnd. WAP. wbmp
Text/vnd. WAP. WMLS
Application/vnd. WAP. wmlc
Application/vnd. WAP. wmlscriptc wmlsc
Text/vnd. WAP. WMLScript WSC
Text/vnd. WAP. WMLScript

After modification, do not forget to restart Apache.
You can create a WAP web page for testing. Of course, if you access WAP in this case, you need to add the file name, for example, http://ota.3322.org/wap/index.wml. if no value is set, an error may occur. If you need to access ingress "httpd. conf ". In Debian Linux 3.0, this file is in the/etc/Apache directory. Other Linux systems may be different. Open the file and find the following section:

<Ifmodule mod_dir.c>
Directoryindex index.html index.htm index.shtml index. cgi
</Ifmodule>

Directoryindex is the place where the file is opened by default. Add index. WML at the end. Of course, it can also be another file name you want.
After the modification is completed, restart Apache.
OK. Now we have WAP!

The OTA settings are similar. It is also used to modify the "mime. types" file and add the following two lines:
Application/Java-archive jar
Text/vnd. Sun. J2. app-Descriptor Jad

The jar file type already exists in my system, but the description is application/X-archive. Just modify it.
After saving, restart Apache.
OK, OTA is also done! You can try it with your Java phone.
OTA download failed?
Don't worry, first take a look at *. JAD file, inside the MIDlet-jar-URL parameter is not correct, don't forget to change to your server path, pay attention to the case, such as: http://ota.3322.org/wap/java/aMidp.jar
Not yet?
Take a look at your mobile phone. If your mobile phone is Siemens, you must dial 17201 when using OTA for download, and the password and user name are both 172. For more information, see your mobile phone description.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.