Article title: Configure WAP + OTA in Apache. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
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 (you don't need to add them if you already have them.
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 (Editor's note: This file is in the/etc/httpd/conf directory on the RedHat and Turbo servers ), other Linux systems may be different. Open the file and find the following section:
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. Is it easy.
What? 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.
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.