[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] WAP Server Configuration



If you are a developer, are making you first WML page and want to view it
from a WAP browser, you can eather ask you ISP to add the correct WML
mime-types.
If you are hosting your WML pages on the Apache server (Your server software
is Apache/1.3.3 Cobalt (Unix) (Red Hat/Linux)) you can try to do it yourself
by creating a file with the name .htaccess with the following content:
addtype text/vnd.wap.wml wml

This will force the server to send out the mime-type "text/vnd.wap.wml" with
every .wml page in this directory..

But the correct way to configure the web server is to add the following 5
mime-types to the server configuration file.

Content MIME type Extension
WML source text/vnd.wap.wml Wml
Compiled WML Application/vnd.wap.wmlc Wmlc
WMLScript source text/vnd.wap.wmlscript Wmls
Compiled WMLScript Application/vnd.wap.wmlscriptc Wmlsc
Wireless bitmap image/vnd.wap.wbmp wbmp

This means that the following lines must be added to your httpd.conf file:

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