Gå til innhold
Trenger du hjelp med internett og nettverk? Still spørsmål her ×

WAP server på Apache? Trenger jeg det?


Anbefalte innlegg

Videoannonse
Annonse

Question 6

How should I configure Apache to make it serve WAP pages?

 

Answer

You should add these lines to your Apache configuration:

 

AddType text/vnd.wap.wml .wml .wml

AddType Application/vnd.wap.wmlc .wmlc

AddType text/vnd.wap.vmlscript .wmls

AddType Application/vnd.wap.wmlscriptc .vmlsc

AddType image/vnd.wap.wbmp .wbmp

 

The you should locate the 'DirectoryIndex' directive in the file, and add the 'index.wml' tag to it, should look something like this afterwards:

 

<IfModule mod_dir.c>

DirectoryIndex index.html index.wml

</IfModule>

 

This tells Apache to look for a file named index.wml if no file is specified in the requested URL. (Example: http://host.fo/wap/ )

 

Note: There might be more arguments here if you, for example, have installed support for PHP or Perl.

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...