URL変換プロファイルの構成
NetScalerコマンドラインを使用してURL変換プロファイルを作成するには
-
add transform profile <profileName> -type URL [-onlyTransformAbsURLinBody (ON|OFF)] \[-comment <comment>] -
add transform action <name> <profileName> <priority> -
set transform action <name> [-priority <priority>] [-reqUrlFrom <expression>] [-reqUrlInto <expression>] [-resUrlFrom <expression>] [-resUrlInto <expression>] [-cookieDomainFrom <expression>] [-cookieDomainInto <expression>] [-state (ENABLED|DISABLED)] [-comment "<string>"] -
show transform profile <name>
> add transform profile shoppingcart -type URL
Done
> add transform action actshopping shoppingcart 1000
Done
> set transform action actshopping -priority 1000 -reqUrlFrom 'shopping.example.com' -reqUrlInto 'www.example.net/shopping' -resUrlFrom 'www.example.net/shopping' -resUrlInto 'shopping.example.com' -cookieDomainFrom 'example.com' -cookieDomainInto 'example.net' -state ENABLED -comment 'URL transformation for shopping cart.'
Done
> show transform profile shoppingcart
Name: shoppingcart
Type: URL onlyTransformAbsURLinBody: OFF
Comment:
Actions:
1) Priority 1000 Name: actshopping ENABLED
Done
NetScalerコマンドラインを使用して既存のURL変換プロファイルまたはアクションを変更するには
-
set transform action <name> [-priority <priority>] [-reqUrlFrom <expression>] [-reqUrlInto <expression>] [-resUrlFrom <expression>] [-resUrlInto <expression>] [-cookieDomainInto <expression>] [-state (ENABLED|DISABLED)] [-comment "<string>"] -
show transform profile <name>
> set transform action actshopping -priority 1000 -reqUrlFrom 'searching.example.net' -reqUrlInto 'www.example.net/searching' -resUrlFrom 'www.example.net/searching' -resUrlInto 'searching.example.com' -cookieDomainInto 'example.net' -state ENABLED -comment 'URL transformation for searching cart.'
Done
> show transform profile shoppingcart
Name: shoppingcart
Type: URL onlyTransformAbsURLinBody: OFF
Comment:
Actions:
1) Priority 1000 Name: actshopping ENABLED
Done
NetScalerコマンドラインを使用してURL変換プロファイルとアクションを削除するには
-
rm transform action
<name>プロファイルに関連するすべてのアクションを削除したら、次に示すようにプロファイルを削除します。 -
rm トランスフォームプロファイル
<name>
構成ユーティリティを使用して URL 変換プロファイルを作成するには
-
URL 変換プロファイルの作成ダイアログボックスで 、パラメータの値を入力または選択します。ダイアログボックスの内容は、「URL 変換プロファイルを構成するためのパラメータ」で説明されているパラメータに次のように対応します (アスタリスクは必須パラメータを示します)。
-
名前* — 名前
-
Comment—comment
-
レスポンス本文の絶対URLのみを変換する — Absurlin本文のみを変換する
-
構成ユーティリティを使用して URL 変換プロファイルとアクションを設定するには
-
詳細ペインで、設定するプロファイルを選択し、「 開く」をクリックします。
-
URL 変換プロファイルの設定ダイアログボックスで 、次のいずれかを実行します。
-
パラメータの値を入力または選択して、「 URL変換アクションの作成**」または「URL 変換アクションの変更** 」ダイアログボックスに入力します。ダイアログボックスの内容は、「URL 変換プロファイルを構成するためのパラメータ」で説明されているパラメータに次のように対応します (アスタリスクは必須パラメータを示します)。
-
アクション名*—name
-
Comments—comment
-
Priority*—priority
-
URL のリクエスト元 — リクエスト元
-
URL 情報をリクエストする — リクエストする
-
レスポンス URL 送信元 — 返信元
-
レスポンス URL の宛先 — 戻る
-
クッキードメインの送信元 — クッキードメインの送信元
-
クッキードメイン情報 — クッキードメイン情報
-
有効 — 状態
-
-
変更を保存します。
-
新しいアクションを作成する場合は、「 作成」をクリックし、「 閉じる」をクリックします。
-
既存のアクションを変更する場合は、「 **OK」**をクリックします。 ステータス・バーに、プロファイルが正常に構成されたことを示すメッセージが表示されます。
-
-
ステップ 3 からステップ 5 を繰り返して、追加のアクションを作成または変更します。
-
「 OK」 をクリックして変更を保存し、「URL 変換プロファイルの変更」ダイアログ・ボックスを閉じます。