Interstage HTTP Server 運用ガイド
|
目次
索引

|
3.2.11 リダイレクト機能の設定
リダイレクト機能は、環境定義ファイル(httpd.conf)において、以下に示すディレクティブを使用して設定します。

ServletサービスのアプリケーションのURLに対してリダイレクトを設定する場合は、<Location>セクションの中に、RedirectディレクティブまたはRedirectMatchディレクティブを設定してください。

“/info”を“www.company.com/info”にリダイレクトする場合
Redirect seeother /info http://www.company.com/info |
SSL環境を構築している場合は、リダイレクトパスとして設定するURLに、SSL通信を行う“https”を指定することもできます。
Redirect seeother /info https://www.company.com/info |

GIFファイルを他のサーバ(www.company.com)の同じ名前のJPEGファイルにリダイレクトする場合
RedirectMatch (.*)\.gif$ http://www.company.com$1.jpg |
関連ディレクティブ
Copyright 2008 FUJITSU LIMITED