Blue Reef Technical Support Blue Reef Virtual Server Reseller ProgramInstallation instructions, manuals, how-tos, and more!About Blue Reef Consulting, Inc.

About Blue Reef Virtual ServersEcommerce Solutions for your Virtual ServerSearch the Blue Reef Virtual Server web site
Return to Blue Reef Virtual Servers Home Page
Order virtual servers, software, computers, and more!
Return to Blue Reef Main Home Page
Specials
Site Map
Support Solutions to help you do business with your Virtual Server.



Blue Reef Vitual Servers
Support Menu
Web Server Configuration
OverviewServer Configuration Overview
Configuring an index fileConfiguring an index file
Configuring CGI SettingsConfiguring CGI Settings
Installing CGI ScriptsInstalling CGi Scripts
CGI Security Issues
Server Side Includes
Restricing Access to Site
Choosing Passwords Wisely
Serving WAP DocumentsServing WAP Documents
Multi-language settings
Mime types
Configuring the Server Time Zone
Advanced Configuration
Recommended Books
Virtual Server Handbook
Submit a question to our Support Staff


Serving WAP Documents

WAP (Wireless Application Protocol) is a protocol that allows wireless devices access to information and services over the Internet via a wireless Web-enabled device. By using already existing Internet technology such as XML and IP, devices such as, mobile phones, PDAs, pagers, two-way radios, smart phones, communicators, and terminals can obtain Internet content and services.

Configuration
It is quite easy to enable a Virtual Server web server to serve WAP (Wireless Application Protocol) documents. Your Apache Web Server simply needs the correct MIME Types.

  1. Connect to your Virtual Server via Telnet or SSH and use an online editor, like pico, to open your web server configuration file (~/www/conf/httpd.conf). Or, download your web server configuration file via FTP, making sure to download (and upload) in ASCII format. Then make the following additions to the httpd.conf file.

    
    AddType text/vnd.wap.wml               .wml
    AddType image/vnd.wap.wbmp             .wbmp
    AddType application/vnd.wap.wmlc       .wmlc
    AddType text/vnd.wap.wmlscript         .wmls
    AddType application/vnd.wap.wmlscriptc .wmlsc
    

  2. You might also want to add index.wml to the DirectoryIndex directive, like this:

    
    DirectoryIndex index.wml index.html
    

Testing
Create a ~/www/htdocs/hello.wml test file to verify that you've configured settings properly. The following sample code show how to create two sample cards using Wireless Markup Language (.wml).

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="My Wap Page"> 
<p>Hello world - this is my first wap card!</p> 
<p><a href="#card2">Go to the second card</a></p> 
</card> 
<card id="card2" title="Second Card"> 
<p>This is my second wap card!</p> 
<p><a href="#card1">Go back to the first card</a></p> 
</card> 
</WML>

When you develop WML pages, you should always check the page in one of the available Software Development Kits (SDKs):

In order to view your new WAP document, you will need a WAP-enabled cell phone or a WAP emulator. There are many WAP emulators available, including these:

More Information

SEE ALSO:

Web Server Configuration Overview

Recommended Server Configuration Books

Order a Virtual Server

BOOKS TO HELP YOU:


CGI Programming 101

$24.95


CGI Programming With Perl

$26.36


Web Security: A Step-by-Step Reference Guide

$23.96



Apache Server Bible

$39.99


Apache : The Definitive Guide (2nd Edition, 1999)

$26.36

Amazon.com logo
Search for :
Enter keywords...