This document has the following sections:
The MIME Types page allows you to add, edit, or delete suffix mappings. Suffix mappings are used to map file extensions to MIME types (a method for determining file formats), so that the JavaTM Web ServerTM can determine the type and contents of any HTTP file request it receives. The Java Web Server uses the suffix mappings to determine how to return data to the World Wide Web client making the request.
This page displays a list of predefined suffix mappings. If Java Web Server
can't find a suffix mapping entry in this list, it uses the default MIME
type text/plain
. This means that the server uses the text
transfer method and assumes that it is returning plain text.
Note:
The file extension is read as lower-case (thus, HTML is equivalent to html) for the purposes of mapping it against the appropriate MIME type. If you need the extension to be read in a case-sensitive manner, you can set this behavior in the httpd.properties file of the selected service.
For instance, to have file extensions read in a case-sensitive manner for your Web Service
- change to the directory containing the httpd file for that service
% cd <server_root>/ properties/server/javawebserver/adminservice/httpd.properties- add the following line
mime.extension.casesensitive=True
Extension
A list of possible extensions that could be attached to any file request.
For example, the .gif
extension indicates that the requested
file is of the type/subtype image/gif
(Graphics Image Format).
Note: For easier suffix mapping and fielding of requests, it is
possible to enter spelling variations for common extensions into the
Extension list. For example, you could enter both gif
and
giff
into the list as variations of the type/subtype
image/gif
. This way, the Java Web Server will properly service
requests for the file type even if the requesting suffix is misspelled.
Type/Subtype
A list of file types recognized by the Java Web Server. The Type part of the
pair indicates the generic file category possible to be served by the
Java Web Server, for example, audio, application, image, etc. The Subtype
part of the pair indicates the exact file extension for that generic
category.
Procedures
To Remove a Suffix Mapping:
To Modify a Suffix Mapping:
Note: If you Add, Modify, or Remove a MIME type, you must Save before the change will take effect.
Top java-server-feedback@java.sun.com |
Copyright © 1997
Sun Microsystems, Inc. All Rights Reserved. |