Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st October 2010, 10:10
j.smith1981 j.smith1981 is offline
Member
 
Join Date: Nov 2008
Posts: 63
Thanks: 0
Thanked 3 Times in 3 Posts
Question WAP Sites with Apache 2

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.
Reply With Quote
Sponsored Links
  #2  
Old 22nd October 2010, 14:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 22nd October 2010, 15:41
j.smith1981 j.smith1981 is offline
Member
 
Join Date: Nov 2008
Posts: 63
Thanks: 0
Thanked 3 Times in 3 Posts
Thumbs up

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.
Reply With Quote
  #4  
Old 22nd October 2010, 16:09
j.smith1981 j.smith1981 is offline
Member
 
Join Date: Nov 2008
Posts: 63
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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 Code:
<?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?
Reply With Quote
  #5  
Old 22nd October 2010, 16:29
j.smith1981 j.smith1981 is offline
Member
 
Join Date: Nov 2008
Posts: 63
Thanks: 0
Thanked 3 Times in 3 Posts
Question

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.
Reply With Quote
  #6  
Old 23rd October 2010, 11:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
 
Default

You can try this with a WAP emulator: http://www.wirelessdevnet.com/channe...tml?category=4
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to install roundcubemail ressel Installation/Configuration 13 24th December 2009 20:13
problems with suexec gobokster Installation/Configuration 7 7th May 2009 13:33
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 20:58
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45


All times are GMT +2. The time now is 22:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.