文字列マップ
MAP_STRING(<string_map_name>) およびIS_STRINGMAP_KEY(<string_map_name>)を使用します。
文字列マップの仕組み
| キー | 値 |
|---|---|
| /url_1.html | http://www.redirect_url_1.com/url_1.html |
| /url_2.html | http://www.redirect_url_2.com/url_2.html |
| /url_3.html | http://www.redirect_url_1.com/url_1.html |
文字列マップの設定
-
文字列マップを作成します。
add policy stringmap <name> -comment <string>
-
キーと値のペアを文字列マップにバインドします。
bind policy stringmap <name> <key> <value> [-comment <string>]
bind policy stringmap url_string_map1 "/url_1.html" "http://www.redirect_url_1.com/url_1.html"
Citrix ADC GUIを使用して文字列マップを構成するには
例:リダイレクトアクションを含むレスポンダーポリシー
add stringmap url_string_map
bind stringmap url_string_map /url_1.html http://www.redirect_url_1.com/url_1.html
bind stringmap url_string_map /url_2.html http://www.redirect_url_2.com/url_2.html
bind stringmap url_string_map /url_3.html http://www.redirect_url_1.com/url_1.html
add responder action act_url_redirects redirect 'HTTP.REQ.URL.MAP_STRING("url_string_map") ALT "www.default.com"' -bypassSafetyCheck yes
add responder policy pol_url_redirects TRUE act_url_redirects
bind cs vserver csw_redirect -policyname pol_url_redirects -priority 1 -type request
Citrix ADC GUIを使用して文字列マップを構成するには
-
ナビゲーションウィンドウで、\[AppExpert\] を展開し、\[文字列マップ\] をクリックします。
-
詳細ウィンドウで、\[追加\] をクリックします。
-
\[文字列マップの作成\] ページで、次のパラメータを設定します。
-
Name:文字列マップの名前。
-
キー値を設定します。文字列マップにバインドされたASCIIベースのキー値エントリ
-
コメント。文字列マップにバインドされたキー値に関する簡単な説明。
-
-
\[作成\]して\[閉じる\] をクリックします。
