文字列マップ
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"
NetScaler 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 policy pol_url_redirects TRUE act_url_redirects
bind cs vserver csw_redirect -policyname pol_url_redirects -priority 1 -type request
