No Gravatar

This page lists web server configuration updates required to serve content correctly to mobile devices.

Content Types for Mobile Markup

File extensions of mobile markup documents are associated with mobile MIME types. Refer to this comprehensive list of mobile MIME types for XHTML-MP, WML and binary files.

The web server must associate mobile markup files with the correct MIME types.

Adding MIME types in Apache 2.2 httpd

Use the AddType directive in mod_mime configuration to add new content types into mime.types or httpd.conf configuration files.

Sample Apache .htaccess Configuration for Mobile MIME Types

The AddType Apache configuration directive specifies a MIME type and a list of file extensions to be served with the MIME type using this format:

AddType <MIME type> <file extension> [<file extension>] …

Here is an example .htaccess configuration file that adds support for mobile MIME types.

# Add Mobile MIME types for xhtml, wml, wbmp and wmls file extensions
AddType application/vnd.wap.xhtml+xml .xhtml
AddType text/vnd.wap.wml .wml
AddType image/vnd.wap.wbmp .wbmp
AddType text/vnd.wap.wmlscript .wmls

Adding MIME types in IIS 7.0

In IIS 7.0, it is possible to add MIME types into web server configuration using the UI, at the command line or by manually editing configuration files. Follow TechNet’s instructions for adding MIME types into IIS or Microsoft Support’s instructions for adding MIME types for IIS 6.0.



VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Web Server Config, 5.0 out of 5 based on 1 rating