You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by JM <je...@gmanmi.tv> on 2003/12/09 13:01:42 UTC

[users@httpd] Changing default content-type

Hi,
	How can I change the default content-type being served by apache.

	For example I want to use my web server as a WAP server only.  This means ill 
be serving text/vnd.wap.wml only.	

	Im using apache-2.x on RH 9

TIA
jm


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Changing default content-type

Posted by Robert Andersson <ro...@profundis.nu>.
JM wrote:
> hmm... i think a better question is how do i add a new content-type in
> apache..
> im wish to add text/vnd.wap.wml to wml pages...

See:
    http://httpd.apache.org/docs-2.0/mod/mod_mime.html#addtype

To have all files with a .wml extension served as text/vnd.wap.wml, you
simple add this directive to httpd.conf:

    AddType text/vnd.wap.wml .wml

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Changing default content-type

Posted by JM <je...@gmanmi.tv>.
hmm... i think a better question is how do i add a new content-type in 
apache..
im wish to add text/vnd.wap.wml to wml pages...


TIA
jm

On Tuesday 09 December 2003 20:01, JM wrote:
> Hi,
> 	How can I change the default content-type being served by apache.
>
> 	For example I want to use my web server as a WAP server only.  This means
> ill be serving text/vnd.wap.wml only.
>
> 	Im using apache-2.x on RH 9
>
> TIA
> jm
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org