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.