Koozali.org: home of the SME Server

mime.types and wap

Martin

mime.types and wap
« on: March 20, 2001, 09:59:30 PM »
Hi,
I have set up an i-bay with wap.mycompany.xxx and a virtual domain that point to this i-bay.
In this wap-i-bay i put an index.wml file (If I browse now to http://wap.mycompany.xxx with a wap-phone I got this error:
"Wrong mime.type"
If i browse to http://wap.mycompany.xxx/index.wml everything is ok.
Mime.types file in etc and templates is ok - with text/vnd.wap.wml and so on.
What can I do that it works without the "/index.wml"?
Thank you.
martin

Fran Boon

Re: mime.types and wap
« Reply #1 on: March 20, 2001, 10:23:09 PM »
>What can I do that it works without the "/index.wml"?

You need to edit /etc/httpd/conf/httpd.conf

The line you are looking for is:
DirectoryIndex
Add index.wml to the list therein...

The E-Smith way of doing this editing is to create custom templates in
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

50DirectoryIndex00
&
50DirectoryIndex00PHP

(Copy from /etc/e-smith/templates/etc/httpd/conf/httpd.conf & then edit)

Good Luck :)
Fran.

Martin

Re: mime.types and wap
« Reply #2 on: March 20, 2001, 11:19:37 PM »
Wow - very fast answer.
It works.
Thank you Fran.
martin