WAP Sites with Apache 2

Discussion in 'Technical' started by j.smith1981, Oct 21, 2010.

  1. j.smith1981

    j.smith1981 New Member

    Is there any way of hosting WAP or general mobile sites with apache 2?

    I have heard about it and everything but not exactly sure of what to setup, the various sites I have seen give different opinions on what I need to do.

    Has anyone else done this before?

    Just an idea for a project a friend wants me to do but just not exactly sure of where to go from just finding out so to speak.

    Sure it would just be about setting a MIME type and sorting out the DOC type in the html (output being from programming of course for this project).

    Any help is greatly appreciated,
    Jeremy.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Try to add this to your vhost:

    Code:
    AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
    AddType text/vnd.wap.wml .wml
    AddType text/vnd.wap.wmlscript .ws .wmlscript
    AddType image/vnd.wap.wbmp .wbmp
     
  3. j.smith1981

    j.smith1981 New Member

    Thanks ever so much falko!

    I have added those inton the relevant hosted sites I am hosting and it seems to have restarted absolutely fine.

    Will do a check at some point to just see for real if that has worked, but thanks for that!

    Jeremy.
     
  4. j.smith1981

    j.smith1981 New Member

    I am sorry to say it doesnt appear to have worked at all.

    On my phone for example which is a HTC Desire and an Android phone, just brings up markup.

    I have included the correct markup, from the w3c and even checked it against what you have put the above that you stated, infact retried 3 times, its exactly the same, still nothing.

    All it does is show the markup and doesnt represent a real web WAP page.

    This is my markup:

    HTML:
    <?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="HTML" title="HTML Tutorial">
      <p>Our HTML Tutorial is an award winning
      tutorial from W3Schools.</p>
    </card>
    
    <card id="XML" title="XML Tutorial">
      <p>Our XML Tutorial is an award winning
      tutorial from W3Schools.</p>
    </card>
    
    </wml>
    Saved as a wml file as it ways on the w3schools site at: http://www.w3schools.com/wap/wap_basic.asp

    Any ideas anyone?
     
  5. j.smith1981

    j.smith1981 New Member

    Or maybe its because mine interprets HTML and it doesnt understand those MIME types at all, could this be why?

    Is there any means of checking if this works without having a WAP phone per say?

    Interesting though if there is!

    Thanks again Falko and I look forward to your reply,
    Jeremy.
     
  6. falko

    falko Super Moderator ISPConfig Developer

Share This Page