Web Hosting Talk







View Full Version : HOW-TO Add WAP / wml capability to your server


Doggy
04-07-2004, 04:22 PM
As root, add the following line to your httpd.conf

AddType text/vnd.wap.wml .wml

Restart apache, and its done.

This can also be added to a .htaccess file in the directory that contains the wml files. (don't have to be root for that)

On Ensim, if you don't want a server wide solution, as root, add it to the /etc/httpd/conf/virtual/sitex file where sitex is the site you want to enable it on. ( restart apache - service httpd restart )
or ...
in the /etc/httpd/conf/sitex directory, create a file called wap and enter the following into that file:


<Directory /home/virtual/sitex/fst/var/www/html/your-directory>
AddType text/vnd.wap.wml .wml
</Directory>


Save the file, then restart apache.
That way, it won't get written over by Ensim ;)


Erricsson and Nokia both have free sdk software available and emulators for testing on a pc.

Please add any other config settings for other server types.

Im_Goodspeed
09-13-2005, 09:41 AM
Also you'll probably need to add these lines too

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

artofmobile
09-13-2005, 10:25 AM
Why not add to .htaccess, no restart of apache and you do not need the adminstrator to do that.