I am having trouble with http error 502: Bad Gateway when accessing from a wap mobile phone. (Several phones tried)
On a online wapbrowser there is no problem at all.
The wap page (index.php) Is on a server that's running apache and theese settings:
.htacces:
addtype text/vnd.wap.wml wml
addtype image/vnd.wap.wbmp wbmp
AddType text/vnd.wap.wmlscript wmls
AddType application/vnd.wap.wmlc wmlc
AddType application/vnd.wap.wmlscriptc wmlsc
mime.types:
text/vnd.wap.wml wml
Is the server WAP-enable with theese settings?
index.php:
<?php header("Content-type: text/vnd.wap.wml");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";?>
<wml><template>
<do type="prev" label="Tilbake">
<prev/>
</do>
</template>
<card id="splash" title=" ">
<onevent type="onenterbackward" >
<prev/>
</onevent>
<onevent type="ontimer">
<go href="#home"/>
</onevent>
<timer value="30"/>
<p align="center">
<img src="wbmp/logo.wbmp" alt="Årnes kino"/>
</p>
</card>
<card id="home" title="Årnes kino">
<anchor>Dagens filmer
<go href="#dagens"/>
</anchor>
<br/>
<anchor>Filmprogram
<go href="#filmprogram"/>
</anchor>
</card>
<card id="dagens" title="Dagens filmer:">
<?php include ("dagens.php"); ?>
</card>
<card id="filmprogram" title="Filmprogram:">
<?php include ("filmprog.php"); ?>
</card></wml>
All this gives me http error 502 bad gateway.
The header (content-type......) fails, but how to fix it?
I have spend the last tree weeks figuring out the problem, and my boss is mad, so any help will be very nice! 🙂
Regards, Akke