Internet Information Services Documentation Team
| はじめに | |
| MIME 一覧表の使用方法 | |
| IIS 4.0 に MIME タイプを追加 | |
| IIS 5.0 に MIME タイプを追加 | |
| ASP ページで MIME タイプを宣言 | |
| 一覧表 : IIS の MIME フォーマット - 拡張子順 | |
| 一覧表 : IIS の MIME フォーマット - タイプ/サブタイプ順 |
MIME (Multipurpose Internet Mail Extensions) は、イントラネットおよびインターネット上の、電子メールの交換、Web 文書、およびその他のアプリケーションによって使用される、ファイル形式を作成するための仕様です。各 MIME フォーマットは、ファイルに格納されるデータの種類を示す MIME コンテンツ タイプ ("MIME タイプ") とサブタイプを備えます。MIME タイプおよびサブタイプは通常 <タイプ>/<サブタイプ> の形で表記されます。たとえば、MPEG ビデオ ファイルは "video/mpeg" と表記されます。MIME タイプ/サブタイプの一覧には、利用可能なファイル拡張子が含まれています。たとえば、MPEG ファイルの MIME 情報の一覧表には、次のような MPEG の項目が含まれます。
| タイプ/サブタイプ | 拡張子 |
video/mpeg | .mpe, .mpeg, .mpg |
MIME フォーマットのコンテンツは、Web 文書で広く使われています。たとえば、Web ページに MPEG ファイルへのリンクすることができます。ユーザーが MPEG ファイルへのリンクをクリックすると、インターネット インフォメーション サービス (IIS) および MicrosoftR Internet Explorer ブラウザは MPEG ファイルをブラウザで表示するために次の一連の動作を行います。
1. | ファイルと共に、IIS は MIME タイプ/サブタイプ (video/mpeg、video/mpe または video/mpg) をブラウザに送信します。 |
2. | ブラウザが MPEG MIME フォーマットに対応している場合、ブラウザはファイルを表示します。 |
3. | ブラウザがその MIME フォーマットをサポートしていない場合、ブラウザはヘルパー アプリケーションの一覧からファイル拡張子を検索します。次に、ファイルを表示する適切なヘルパー アプリケーションを選択するか、エラー メッセージを返します。 |
IIS には一般的な Web 関連の MIME タイプ/サブタイプおよびファイル拡張子の一覧が含まれています。ダウンロードする MIME 形式のファイルに対して IIS が MIME 情報をもっていない場合、IIS はそのファイルに既定の MIME 識別子を送信します。そのため、ファイルを受信したクライアントがコンテンツを誤認識することがあります。MIME 情報が一覧に含まれていないファイルの MIME タイプ/サブタイプおよびファイル拡張子を手動で IIS に追加することができます。「IIS 4.0 に MIME タイプを追加」または「IIS 5.0 に MIME タイプを追加」セクションを参照してください。
MIME 形式を使用する場合、ブラウザが直接対応していない MIME タイプを処理するには、ブラウザでヘルパー アプリケーションの設定を行う必要があります。
本書では、MIME 一覧表を 2 つの方法で表記します。
| • | 最初の一覧表では IIS 4.0、IIS 5.0 の MIME 形式が拡張子順に並べられています。 |
| • | 2 番目の一覧表では MIME タイプ/サブタイプ順に並べられています。 |
IIS 4.0、IIS 5.0 で使用されている MIME 拡張子から MIME タイプ/サブタイプを調べる場合は、「一覧表 : IIS の MIME フォーマット - 拡張子順」を参照してください。
ある MIME タイプ/サブタイプが IIS 4.0、IIS 5.0 で登録されているかどうかを調べる場合は、「IIS の MIME フォーマット - タイプ/サブタイプ順」を参照してください。この一覧表は特定の MIME タイプ/サブタイプに使用されているファイル拡張子を調べる場合にも便利です。
IIS 4.0 では [インターネット サービス マネージャ] コンソールを使用して MIME タイプを登録できます。
たとえば、[インターネット サービス マネージャ] を使用して XML MIME タイプを追加するには次の手順を実行します。
1. | [既定の Web サイト] をクリックして [プロパティ] ダイアログ ボックスを表示します。 |
2. | [HTTP ヘッダー] タブをクリックします。 |
3. | [MIME マップ] の [ファイルの種類] をクリックして、[追加] をクリックします。 |
4. | [関連付けられた拡張子] ボックスに ".xml"、[内容の種類 (MIME)] ボックスに "text/xml" と入力して、[OK] をクリックします。 |
.xsl (eXtensible Style Sheet) などのほかの拡張子も同様の手順で追加します。
IIS 5.0 では [インターネット インフォメーション サービス] スナップインを使用して MIME タイプを登録できます。
たとえば、[インターネット インフォメーション サービス] スナップインを使用して既定の Web サイトに XML MIME タイプを追加するには次の手順を実行します。
1. | [既定の Web サイト] をクリックして [プロパティ] ダイアログ ボックスを表示します。 |
2. | [HTTP ヘッダー] タブをクリックします。 |
3. | [MIME マップ] の [ファイルの種類] をクリックして、[追加] をクリックします。 |
4. | [関連付けられた拡張子] ボックスに ".xml"、[コンテンツの種類 (MIME)] ボックスに "text/xml" と入力して、[OK] をクリックします。 |
1 つのコンピュータ上で実行されているすべてのサイトに XML MIME タイプを追加するには次の手順を実行します。
1. | [インターネット インフォメーション サービス] スナップインからコンピュータ名を選択して[プロパティ] ダイアログ ボックスを表示します。 |
2. | [コンピュータ MIME マップ] の [編集] をクリックして、[追加] を選択します。 |
3. | [関連付けられた拡張子] ボックスに ".xml"、[コンテンツの種類 (MIME)] ボックスに "text/xml" と入力して、[OK] をクリックします。 |
.xsl (eXtensible Style Sheet) などのほかの拡張子も同様の手順で追加します。
Web サーバーはファイルをブラウザに返す際に、コンテンツ タイプを識別する情報を送信します。ASP アプリケーションが HTML 以外のコンテンツを生成する場合、Response オブジェクトの ContentType プロパティを使用して MIME タイプ/サブタイプを宣言する必要があります。
たとえば、ASP を使用して XML を動的に生成する場合、ASP ファイルの中で XML MIME タイプ/サブタイプを宣言する必要があります。次のように Response オブジェクトの ContentType プロパティを使用して、出力が XML であることを示します。
<% Response.ContentType = "text/xml" %>
次の表では IIS 4.0 および IIS 5.0 で登録されている MIME コンテンツ タイプを拡張子順に示します。
| 拡張子 | タイプ/サブタイプ | IIS 4.0 | IIS 5.0 |
* | application/octet-stream | はい | はい |
323 | text/h323 | いいえ | はい |
acx | application/internet-property-stream | いいえ | はい |
ai | application/postscript | はい | はい |
aif | audio/x-aiff | はい | はい |
aifc | audio/x-aiff | はい | はい |
aiff | audio/x-aiff | はい | はい |
asf | video/x-ms-asf | いいえ | はい |
asr | video/x-ms-asf | いいえ | はい |
asx | video/x-ms-asf | いいえ | はい |
au | audio/basic | はい | はい |
avi | video/x-msvideo | はい | はい |
axs | application/olescript | いいえ | はい |
bas | text/plain | はい | はい |
bcpio | application/x-bcpio | はい | はい |
bin | application/octet-stream | はい | はい |
bmp | image/bmp | はい | はい |
c | text/plain | はい | はい |
cat | application/vnd.ms-pkiseccat | いいえ | はい |
cdf | application/x-cdf | いいえ | はい |
cer | application/x-x509-ca-cert | いいえ | はい |
class | application/octet-stream | はい | はい |
clp | application/x-msclip | はい | はい |
cmx | image/x-cmx | はい | はい |
cod | image/cis-cod | はい | はい |
cpio | application/x-cpio | はい | はい |
crd | application/x-mscardfile | はい | はい |
crl | application/pkix-crl | いいえ | はい |
crt | application/x-x509-ca-cert | いいえ | はい |
csh | application/x-csh | はい | はい |
css | text/css | いいえ | はい |
dcr | application/x-director | はい | はい |
der | application/x-x509-ca-cert | いいえ | はい |
dir | application/x-director | はい | はい |
dll | application/x-msdownload | いいえ | はい |
dms | application/octet-stream | はい | はい |
doc | application/msword | はい | はい |
dot | application/msword | はい | はい |
dvi | application/x-dvi | はい | はい |
dxr | application/x-director | はい | はい |
eps | application/postscript | はい | はい |
etx | text/x-setext | はい | はい |
evy | application/envoy | はい | はい |
exe | application/octet-stream | はい | はい |
fif | application/fractals | いいえ | はい |
flr | x-world/x-vrml | はい | はい |
gif | image/gif | はい | はい |
gtar | application/x-gtar | はい | はい |
gz | application/x-gzip | いいえ | はい |
h | text/plain | はい | はい |
hdf | application/x-hdf | はい | はい |
hlp | application/winhlp | はい | はい |
hqx | application/mac-binhex40 | はい | はい |
hta | application/hta | いいえ | はい |
htc | text/x-component | いいえ | はい |
htm | text/html | はい | はい |
html | text/html | はい | はい |
htt | text/webviewhtml | いいえ | はい |
ico | image/x-icon | いいえ | はい |
ief | image/ief | はい | はい |
iii | application/x-iphone | いいえ | はい |
ins | application/x-internet-signup | いいえ | はい |
isp | application/x-internet-signup | いいえ | はい |
jfif | image/pipeg | いいえ | はい |
jpe | image/jpeg | はい | はい |
jpeg | image/jpeg | はい | はい |
jpg | image/jpeg | はい | はい |
js | application/x-javascript | はい | はい |
latex | application/x-latex | はい | はい |
lha | application/octet-stream | はい | はい |
lsf | video/x-la-asf | いいえ | はい |
lsx | video/x-la-asf | いいえ | はい |
lzh | application/octet-stream | はい | はい |
m13 | application/x-msmediaview | はい | はい |
m14 | application/x-msmediaview | はい | はい |
m3u | audio/x-mpegurl | いいえ | はい |
man | application/x-troff-man | はい | はい |
mdb | application/x-msaccess | はい | はい |
me | application/x-troff-me | はい | はい |
mht | message/rfc822 | いいえ | はい |
mhtml | message/rfc822 | いいえ | はい |
mid | audio/mid | いいえ | はい |
mny | application/x-msmoney | はい | はい |
mov | video/quicktime | はい | はい |
movie | video/x-sgi-movie | はい | はい |
mp2 | video/mpeg | はい | はい |
mp3 | audio/mpeg | いいえ | はい |
mpa | video/mpeg | はい | はい |
mpe | video/mpeg | はい | はい |
mpeg | video/mpeg | はい | はい |
mpg | video/mpeg | はい | はい |
mpp | application/vnd.ms-project | はい | はい |
mpv2 | video/mpeg | はい | はい |
ms | application/x-troff-ms | はい | はい |
mvb | application/x-msmediaview | はい | はい |
nws | message/rfc822 | いいえ | はい |
oda | application/oda | はい | はい |
p10 | application/pkcs10 | いいえ | はい |
p12 | application/x-pkcs12 | いいえ | はい |
p7b | application/x-pkcs7-certificates | いいえ | はい |
p7c | application/x-pkcs7-mime | いいえ | はい |
p7m | application/x-pkcs7-mime | いいえ | はい |
p7r | application/x-pkcs7-certreqresp | いいえ | はい |
p7s | application/x-pkcs7-signature | いいえ | はい |
pbm | image/x-portable-bitmap | はい | はい |
application/pdf | はい | はい | |
pfx | application/x-pkcs12 | いいえ | はい |
pgm | image/x-portable-graymap | はい | はい |
pko | application/ynd.ms-pkipko | いいえ | はい |
pma | application/x-perfmon | はい | はい |
pmc | application/x-perfmon | はい | はい |
pml | application/x-perfmon | はい | はい |
pmr | application/x-perfmon | はい | はい |
pmw | application/x-perfmon | はい | はい |
pnm | image/x-portable-anymap | はい | はい |
pot, | application/vnd.ms-powerpoint | はい | はい |
ppm | image/x-portable-pixmap | はい | はい |
pps | application/vnd.ms-powerpoint | はい | はい |
ppt | application/vnd.ms-powerpoint | はい | はい |
prf | application/pics-rules | いいえ | はい |
ps | application/postscript | はい | はい |
pub | application/x-mspublisher | はい | はい |
qt | video/quicktime | はい | はい |
ra | audio/x-pn-realaudio | はい | はい |
ram | audio/x-pn-realaudio | はい | はい |
ras | image/x-cmu-raster | はい | はい |
rgb | image/x-rgb | はい | はい |
rmi | audio/mid | いいえ | はい |
roff | application/x-troff | はい | はい |
rtf | application/rtf | はい | はい |
rtx | text/richtext | はい | はい |
scd | application/x-msschedule | はい | はい |
sct | text/scriptlet | いいえ | はい |
setpay | application/set-payment-initiation | いいえ | はい |
setreg | application/set-registration-initiation | いいえ | はい |
sh | application/x-sh | はい | はい |
shar | application/x-shar | はい | はい |
sit | application/x-stuffit | いいえ | はい |
snd | audio/basic | はい | はい |
spc | application/x-pkcs7-certificates | いいえ | はい |
spl | application/futuresplash | いいえ | はい |
src | application/x-wais-source | はい | はい |
sst | application/vnd.ms-pkicertstore | いいえ | はい |
stl | application/vnd.ms-pkistl | いいえ | はい |
stm | text/html | はい | はい |
sv4cpio | application/x-sv4cpio | はい | はい |
sv4crc | application/x-sv4crc | はい | はい |
t | application/x-troff | はい | はい |
tar | application/x-tar | はい | はい |
tcl | application/x-tcl | はい | はい |
tex | application/x-tex | はい | はい |
texi | application/x-texinfo | はい | はい |
texinfo | application/x-texinfo | はい | はい |
tgz | application/x-compressed | いいえ | はい |
tif | image/tiff | はい | はい |
tiff | image/tiff | はい | はい |
tr | application/x-troff | はい | はい |
trm | application/x-msterminal | はい | はい |
tsv | text/tab-separated-values | はい | はい |
txt | text/plain | はい | はい |
uls | text/iuls | いいえ | はい |
ustar | application/x-ustar | はい | はい |
vcf | text/x-vcard | いいえ | はい |
vrml | x-world/x-vrml | はい | はい |
wav | audio/x-wav | はい | はい |
wcm | application/vnd.ms-works | はい | はい |
wdb | application/vnd.ms-works | はい | はい |
wks | application/vnd.ms-works | はい | はい |
wmf | application/x-msmetafile | はい | はい |
wps | application/vnd.ms-works | はい | はい |
wri | application/x-mswrite | はい | はい |
wrl | x-world/x-vrml | はい | はい |
wrz | x-world/x-vrml | はい | はい |
xaf | x-world/x-vrml | はい | はい |
xbm | image/x-xbitmap | はい | はい |
xla | application/vnd.ms-excel | はい | はい |
xlc | application/vnd.ms-excel | はい | はい |
xlm | application/vnd.ms-excel | はい | はい |
xls | application/vnd.ms-excel | はい | はい |
xlt | application/vnd.ms-excel | はい | はい |
xlw | application/vnd.ms-excel | はい | はい |
xof | x-world/x-vrml | はい | はい |
xpm | image/x-xpixmap | はい | はい |
xwd | image/x-xwindowdump | はい | はい |
z | application/x-compress | いいえ | はい |
zip | application/zip | はい | はい |
次の表では IIS 4.0 および IIS 5.0 で登録されている MIME コンテンツ タイプをタイプ/サブタイプ順に示します。
| タイプ/サブタイプ | 拡張子 | IIS 4.0 | IIS 5.0 |
application/envoy | evy | はい | はい |
application/fractals | fif | いいえ | はい |
application/futuresplash | spl | いいえ | はい |
application/hta | hta | いいえ | はい |
application/internet-property-stream | acx | いいえ | はい |
application/mac-binhex40 | hqx | はい | はい |
application/msword | doc | はい | はい |
application/msword | dot | はい | はい |
application/octet-stream | * | はい | はい |
application/octet-stream | bin | はい | はい |
application/octet-stream | class | はい | はい |
application/octet-stream | dms | はい | はい |
application/octet-stream | exe | はい | はい |
application/octet-stream | lha | はい | はい |
application/octet-stream | lzh | はい | はい |
application/oda | oda | はい | はい |
application/olescript | axs | いいえ | はい |
application/pdf | はい | はい | |
application/pics-rules | prf | いいえ | はい |
application/pkcs10 | p10 | いいえ | はい |
application/pkix-crl | crl | いいえ | はい |
application/postscript | ai | はい | はい |
application/postscript | eps | はい | はい |
application/postscript | ps | はい | はい |
application/rtf | rtf | はい | はい |
application/set-payment-initiation | setpay | いいえ | はい |
application/set-registration-initiation | setreg | いいえ | はい |
application/vnd.ms-excel | xla | はい | はい |
application/vnd.ms-excel | xlc | はい | はい |
application/vnd.ms-excel | xlm | はい | はい |
application/vnd.ms-excel | xls | はい | はい |
application/vnd.ms-excel | xlt | はい | はい |
application/vnd.ms-excel | xlw | はい | はい |
application/vnd.ms-pkicertstore | sst | いいえ | はい |
application/vnd.ms-pkiseccat | cat | いいえ | はい |
application/vnd.ms-pkistl | stl | いいえ | はい |
application/vnd.ms-powerpoint | pot, | はい | はい |
application/vnd.ms-powerpoint | pps | はい | はい |
application/vnd.ms-powerpoint | ppt | はい | はい |
application/vnd.ms-project | mpp | はい | はい |
application/vnd.ms-works | wcm | はい | はい |
application/vnd.ms-works | wdb | はい | はい |
application/vnd.ms-works | wks | はい | はい |
application/vnd.ms-works | wps | はい | はい |
application/winhlp | hlp | はい | はい |
application/x-bcpio | bcpio | はい | はい |
application/x-cdf | cdf | いいえ | はい |
application/x-compress | z | いいえ | はい |
application/x-compressed | tgz | いいえ | はい |
application/x-cpio | cpio | はい | はい |
application/x-csh | csh | はい | はい |
application/x-director | dcr | はい | はい |
application/x-director | dir | はい | はい |
application/x-director | dxr | はい | はい |
application/x-dvi | dvi | はい | はい |
application/x-gtar | gtar | はい | はい |
application/x-gzip | gz | いいえ | はい |
application/x-hdf | hdf | はい | はい |
application/x-internet-signup | ins | いいえ | はい |
application/x-internet-signup | isp | いいえ | はい |
application/x-iphone | iii | いいえ | はい |
application/x-javascript | js | はい | はい |
application/x-latex | latex | はい | はい |
application/x-msaccess | mdb | はい | はい |
application/x-mscardfile | crd | はい | はい |
application/x-msclip | clp | はい | はい |
application/x-msdownload | dll | いいえ | はい |
application/x-msmediaview | m13 | はい | はい |
application/x-msmediaview | m14 | はい | はい |
application/x-msmediaview | mvb | はい | はい |
application/x-msmetafile | wmf | はい | はい |
application/x-msmoney | mny | はい | はい |
application/x-mspublisher | pub | はい | はい |
application/x-msschedule | scd | はい | はい |
application/x-msterminal | trm | はい | はい |
application/x-mswrite | wri | はい | はい |
application/x-netcdf | cdf | はい | はい |
application/x-netcdf | nc | はい | はい |
application/x-perfmon | pma | はい | はい |
application/x-perfmon | pmc | はい | はい |
application/x-perfmon | pml | はい | はい |
application/x-perfmon | pmr | はい | はい |
application/x-perfmon | pmw | はい | はい |
application/x-pkcs12 | p12 | いいえ | はい |
application/x-pkcs12 | pfx | いいえ | はい |
application/x-pkcs7-certificates | p7b | いいえ | はい |
application/x-pkcs7-certificates | spc | いいえ | はい |
application/x-pkcs7-certreqresp | p7r | いいえ | はい |
application/x-pkcs7-mime | p7c | いいえ | はい |
application/x-pkcs7-mime | p7m | いいえ | はい |
application/x-pkcs7-signature | p7s | いいえ | はい |
application/x-sh | sh | はい | はい |
application/x-shar | shar | はい | はい |
application/x-stuffit | sit | いいえ | はい |
application/x-sv4cpio | sv4cpio | はい | はい |
application/x-sv4crc | sv4crc | はい | はい |
application/x-tar | tar | はい | はい |
application/x-tcl | tcl | はい | はい |
application/x-tex | tex | はい | はい |
application/x-texinfo | texi | はい | はい |
application/x-texinfo | texinfo | はい | はい |
application/x-troff | roff | はい | はい |
application/x-troff | t | はい | はい |
application/x-troff | tr | はい | はい |
application/x-troff-man | man | はい | はい |
application/x-troff-me | me | はい | はい |
application/x-troff-ms | ms | はい | はい |
application/x-ustar | ustar | はい | はい |
application/x-wais-source | src | はい | はい |
application/x-x509-ca-cert | cer | いいえ | はい |
application/x-x509-ca-cert | crt | いいえ | はい |
application/x-x509-ca-cert | der | いいえ | はい |
application/ynd.ms-pkipko | pko | いいえ | はい |
application/zip | zip | はい | はい |
audio/basic | au | はい | はい |
audio/basic | snd | はい | はい |
audio/mid | mid | いいえ | はい |
audio/mid | rmi | いいえ | はい |
audio/mpeg | mp3 | いいえ | はい |
audio/x-aiff | aif | はい | はい |
audio/x-aiff | aifc | はい | はい |
audio/x-aiff | aiff | はい | はい |
audio/x-mpegurl | m3u | いいえ | はい |
audio/x-pn-realaudio | ra | はい | はい |
audio/x-pn-realaudio | ram | はい | はい |
audio/x-wav | wav | はい | はい |
image/bmp | bmp | はい | はい |
image/cis-cod | cod | はい | はい |
image/gif | gif | はい | はい |
image/ief | ief | はい | はい |
image/jpeg | jpe | はい | はい |
image/jpeg | jpeg | はい | はい |
image/jpeg | jpg | はい | はい |
image/pipeg | jfif | いいえ | はい |
image/tiff | tif | はい | はい |
image/tiff | tiff | はい | はい |
image/x-cmu-raster | ras | はい | はい |
image/x-cmx | cmx | はい | はい |
image/x-icon | ico | いいえ | はい |
image/x-portable-anymap | pnm | はい | はい |
image/x-portable-bitmap | pbm | はい | はい |
image/x-portable-graymap | pgm | はい | はい |
image/x-portable-pixmap | ppm | はい | はい |
image/x-rgb | rgb | はい | はい |
image/x-xbitmap | xbm | はい | はい |
image/x-xpixmap | xpm | はい | はい |
image/x-xwindowdump | xwd | はい | はい |
message/rfc822 | mht | いいえ | はい |
message/rfc822 | mhtml | いいえ | はい |
message/rfc822 | nws | いいえ | はい |
text/css | css | いいえ | はい |
text/h323 | 323 | いいえ | はい |
text/html | htm | はい | はい |
text/html | html | はい | はい |
text/html | stm | はい | はい |
text/iuls | uls | いいえ | はい |
text/plain | bas | はい | はい |
text/plain | c | はい | はい |
text/plain | h | はい | はい |
text/plain | txt | はい | はい |
text/richtext | rtx | はい | はい |
text/scriptlet | sct | いいえ | はい |
text/tab-separated-values | tsv | はい | はい |
text/webviewhtml | htt | いいえ | はい |
text/x-component | htc | いいえ | はい |
text/x-setext | etx | はい | はい |
text/x-vcard | vcf | いいえ | はい |
video/mpeg | mp2 | はい | はい |
video/mpeg | mpa | はい | はい |
video/mpeg | mpe | はい | はい |
video/mpeg | mpeg | はい | はい |
video/mpeg | mpg | はい | はい |
video/mpeg | mpv2 | はい | はい |
video/quicktime | mov | はい | はい |
video/quicktime | qt | はい | はい |
video/x-la-asf | lsf | いいえ | はい |
video/x-la-asf | lsx | いいえ | はい |
video/x-ms-asf | asf | いいえ | はい |
video/x-ms-asf | asr | いいえ | はい |
video/x-ms-asf | asx | いいえ | はい |
video/x-msvideo | avi | はい | はい |
video/x-sgi-movie | movie | はい | はい |
x-world/x-vrml | flr | はい | はい |
x-world/x-vrml | vrml | はい | はい |
x-world/x-vrml | wrl | はい | はい |
x-world/x-vrml | wrz | はい | はい |
x-world/x-vrml | xaf | はい | はい |
x-world/x-vrml | xof | はい | はい |