Interstage Application Server Webサーバ運用ガイド (Interstage HTTP Server編)
|
目次
索引

|
3.2.22 言語ベースのコンテンツネゴシエーション
言語ベースのコンテンツネゴシエーションは、Interstage HTTP Serverの環境定義ファイル(httpd.conf)において、以下に示すディレクティブを使用して設定します。

ディレクトリ“C:\Interstage\F3FMihs\htdocs\manual”に対してMultiViews機能を有効にし、拡張子“.ja”、“.de”を日本語、ドイツ語にマップする場合
# ディレクトリ
<Directory "C:/Interstage/F3FMihs/htdocs/manual">
# MultiViews機能の設定
Options MultiViews
</Directory>
# 条件
<IfModule mod_mime.c>
# MIMEコンテンツ言語にファイル拡張子を関連付ける
AddLanguage ja .ja
AddLanguage de .de
</IfModule> |

ディレクトリ“/opt/FJSVihs/htdocs/manual”に対してMultiViews機能を有効にし、拡張子“.ja”、“.de”を日本語、ドイツ語にマップする場合
# ディレクトリ
<Directory "/opt/FJSVihs/htdocs/manual">
# MultiViews機能の設定
Options MultiViews
</Directory>
# 条件
<IfModule mod_mime.c>
# MIMEコンテンツ言語にファイル拡張子を関連付ける
AddLanguage ja .ja
AddLanguage de .de
</IfModule> |
関連ディレクティブ
All Rights Reserved, Copyright(C) 富士通株式会社 2006