Setting mobile Mime Types on apache

Discussion in 'Apache' started by flldom001, Jul 24, 2011.

  1. #1
    Hi I am relatively new to working with servers.

    I have successfully installed apache2, and have loaded mobile web content onto it (xhtml-mp pages) using filezilla. (My OS is Ubuntu: Natty Narwhal)

    I would like to know where do I specify the correct mime types for mobile content in apache? I am using xhtml-mp for developement.

    A 'lay man's terms' kind of response would be most welcome.

    Thanks!
     
    flldom001, Jul 24, 2011 IP
  2. helpinghost

    helpinghost Active Member

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    53
    #2
    You would just need to add a line like this to your apache configuration somewhere under /etc/apache2/:
    AddType application/vnd.wap.xhtml+xml .xhtml

    The other option is to add a .htaccess file in the root of your website with the same content:

    AddType application/vnd.wap.xhtml+xml .xhtml
     
    helpinghost, Jul 28, 2011 IP