The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What is WAP and...

Discussion in 'General Discussion' started by casey, Apr 14, 2003.

  1. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    How do I enable it on my server...or do I have to? Sorry for the dumb question. I guess I'm just not hip to the times....
     
  2. Angel78

    Angel78 Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    413
    Likes Received:
    1
    Trophy Points:
    16
  3. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Thanks! That tells me what it is. I also found the following link:

    http://www.w3schools.com/wap/

    It appears that WAP webpages need a .wml extension. Is this all that is required? Is this support already built in or do I have to enable the .wml extension serverwide somehow? Please forgive the newbie questions.:)
     
    #3 casey, Apr 14, 2003
    Last edited: Apr 14, 2003
  4. Nico

    Nico Well-Known Member

    Joined:
    Dec 5, 2001
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Edmond, OK
    I believe you have to set up the Mime type for .wml.
    I saved this from a while back:



    For Apache

    For Apache, you need to edit the httpd.conf file (which contains Apache's configuration directives) and add the following lines to the end of the file:

    AddType text/vnd.wap.wml wml

    AddType text/vnd.wap.wmlscript wmls

    AddType application/vnd.wap.wmlc wmlc

    AddType application/vnd.wap.wmlscriptc wmlsc

    AddType image/vnd.wap.wbmp wbmp

    The AddType directive tells Apache the details of the MIME types for files with specific extensions. The AddType directive is used like this:

    AddType [MIME Type] [File Extension to map mime type to]

    We've just added five new MIME types to Apache's httpd.conf file. If we now create a blank file called test.wml, then when we request this file through a WAP device, Apache will set the MIME type of that request to text/vnd.wap.wml, which indicates that the file contains WMLScript.

    You'll need to restart Apache so that it recognizes newly added MIME types.
     
  5. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Nico,

    Thanks! I hadn't thought of that. I tried making a wml page and uploading it, but when I typed it in the browser I was prompted to download the file...
    Appreciate it!
     
  6. Veritas

    Veritas Member

    Joined:
    Feb 12, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    On this note, anyone know of a solution to WAP enable WHM/cPanel? To get past the logins and skins or WAP enabled pages?
     
  7. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
Loading...

Share This Page