Simply open a WAP site on Apache

Source: Internet
Author: User
Article title: simply open a WAP site on 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.
Nowadays, there are more and more mobile phones that can access the internet. if you can view information about your website on your mobile phone at any time, isn't it very Happy.
Now, it's actually very easy.
Open/path/to/httpd. conf: add the following configuration content at the end
  
Code:
# Wap MIME
AddType text/vnd. wap. wml. Wml
AddType application/vnd. wap. wmlc. Wmlc
AddType image/vnd. wap. wbmp. Wbmp
AddType application/vnd. wap. wmlscriptc. wmlsc
AddType text/vnd. wap. wmlscript. Wmls
AddType application/vnd. wap/wmlscriptc. Wsc
  
Then make the configuration take effect.
  
That's simple. your Apache already supports Wap access.
  
Come on: open http: // my website/index. php on your mobile phone. Where can I support it.
  
Sorry, I forgot to mention that the mobile wap browser is not a web browser. I'm afraid the capacity of the entire mobile phone is not as large as that of the web browser software.
To use a Wap browser, you must follow the Wap language wml. The following is a simple example:
We recommend that you create test. wml in wap in the site root directory. the content is as follows:
Code:
  
  
  Http://www.wapforum.org/DTD/wml_1.1.xml>
  
  
  
  
  
  
  
  
  
  
  
  
  


  Input:

  

  

  
  
  
   Implement!

  
  


  
  
  
  
Come on: open http: // my website/wap/test. wml on your mobile phone. thanks for your support.
  
Here I will not talk about any more wml languages. I will go to baidu to talk about more materials.
Following the wap game rules, you can use php or cgi to write your dynamic wml page, process some server information, and send it to the wml page.

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.