Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003

    HOW-TO Add WAP / wml capability to your server

    As root, add the following line to your httpd.conf

    PHP Code:
    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:

    PHP Code:
    <Directory /home/virtual/sitex/fst/var/www/html/your-directory>
    AddType text/vnd.wap.wml .wml
    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.

  2. #2

    Thumbs up

    Also you'll probably need to add these lines too

    PHP Code:
    AddType image/vnd.wap.wbmp .wbmp
    AddType text
    /vnd.wap.wmlscript .wmls
    AddType application
    /vnd.wap.wmlc .wmlc
    AddType application
    /vnd.wap.wmlscriptc .wmlsc 
    Whoever wants everything has nothing

  3. #3
    Why not add to .htaccess, no restart of apache and you do not need the adminstrator to do that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts