<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article SSL URL Rewrite with wildcard on ACE in Data Center and Cloud Knowledge Base</title>
    <link>https://community.cisco.com/t5/data-center-and-cloud-knowledge-base/ssl-url-rewrite-with-wildcard-on-ace/ta-p/3123687</link>
    <description>&lt;H2&gt;&lt;SPAN style="font-size: 14pt;"&gt;Introduction&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When doing SSL termination on ACE, there are times when the rserver&amp;nbsp; might not have knowledge that the client only see https and would send a&amp;nbsp; HTTP redirect with a http link (instead of https). This would&amp;nbsp; inadvertently cause the client to leave the encypted session. It's&amp;nbsp; possible to have ACE rewrite the http link to https. This document shows&amp;nbsp; an example configuration to achieve the ACE SSL URL rewrite functionality.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;client browser---------https--------ACE-------http---------rserver&lt;/P&gt;
&lt;P&gt;In the following example, the rserver would send a HTTP 301 redirect with link &lt;A href="http://foo2.bar.com/" rel="nofollow" title="http://foo2.bar.com"&gt;http://foo2.bar.com&lt;/A&gt;, and the ACE would rewrite the link to &lt;A href="https://foo2.bar.com/" rel="nofollow" title="https://foo2.bar.com"&gt;https://foo2.bar.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;&lt;SPAN style="font-size: 14pt;"&gt;Version &lt;/SPAN&gt;&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The configuration shown in this document is created on ACE 4710 Appliance running A3(2.5) version software.&lt;/P&gt;
&lt;P&gt;For the ACE module URL rewrite is supported on version c6ace-t1k9-mz.A2_1.bin or later. Remember that both ACE will need to have certificates and keys.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;&lt;SPAN style="font-size: 14pt;"&gt;Key Config&lt;/SPAN&gt;&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The key configuration is under the "action-list" command. The following commands to rewrite &lt;A href="http://foo2.bar.com/" rel="nofollow" title="http://foo2.bar.com"&gt;http://foo2.bar.com&lt;/A&gt; to &lt;A href="https://foo2.bat.com/" rel="nofollow" title="https://foo2.bat.com"&gt;https://foo2.bar.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE&gt;
&lt;SPAN style="font-family: webdings;"&gt;action-list type modify http SSL_URL_REWRITE&lt;/SPAN&gt;
&lt;SPAN style="font-family: webdings;"&gt;ssl url rewrite location "foo2\.bar\..*"&lt;/SPAN&gt;
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;, the use of wildcard with .*&lt;/P&gt;
&lt;P&gt;This would rewrite &lt;A href="http://foo2.bar.com/" rel="nofollow" title="http://foo2.bar.com"&gt;http://foo2.bar.com&lt;/A&gt; to &lt;A href="https://foo2.bar.com/" rel="nofollow" title="https://foo2.bar.com"&gt;https://foo2.bar.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;or &lt;A href="http://foo2.bar.org/" rel="nofollow" title="http://foo2.bar.org"&gt;http://foo2.bar.org&lt;/A&gt; to &lt;A href="https://foo2.bar.org/" rel="nofollow" title="https://foo2.bar.org"&gt;https://foo2.bar.org&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;or &lt;A href="http://foo2.bar.xyz/" rel="nofollow" title="http://foo2.bar.xyz"&gt;http://foo2.bar.xyz&lt;/A&gt; to &lt;A href="https://foo2.bar.xyz/" rel="nofollow" title="https://foo2.bar.xyz"&gt;https://foo2.bar.xyz&lt;/A&gt; etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two dots is needed for the wildard to work. The "\." (escape&amp;nbsp; character \ and .) means to match a dot. Then ".*" means wildcard (zero or&amp;nbsp; more of any character).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the list a list of the supported characters ACE use in&amp;nbsp; regular expressions. Please see "Special Characters for Matching String&amp;nbsp; Expressions" in the following link:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/ssl/guide/terminat.html#wp1185066" rel="nofollow" title="http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/ssl/guide/terminat.html#wp1185066"&gt;http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/ssl/guide/terminat.html#wp1185066&lt;/A&gt;&lt;/P&gt;
&lt;H1&gt;&amp;nbsp;&lt;/H1&gt;
&lt;H1&gt;&lt;SPAN style="font-size: 14pt;"&gt;Detail Configuration&lt;/SPAN&gt;&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;access-list INBOUND line 8 extended permit ip any any&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;parameter-map type http PERSISTENCE-REBALANCE&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; persistence-rebalance&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\define the rserver host&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;rserver host SERVER1&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; ip address 10.66.85.162&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; inservice&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\as mentioned above in Key Config section&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;action-list type modify http SSL_URL_REWRITE&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; ssl url rewrite location "foo2\.bar\..com"&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\define serverfarm with the rserver&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;serverfarm host HTTP-SFARM&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; rserver SERVER1 80&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; inservice&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;ssl-proxy service TEST-CERT&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; key simon.key&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; cert simon.crt&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\select the address of the server defined in serverfarm&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;sticky ip-netmask 255.255.255.255 address source SOURCEIP-STICKY-HTTP-SFARM&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; replicate sticky&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; serverfarm HTTP-SFARM&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\class map to match SSL traffic to VIP address&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;class-map match-all SSL-VIP&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 2 match virtual-address 10.66.85.77 tcp eq https&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\class map to match management traffic&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;class-map type management match-any remote_access&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 202 match protocol icmp any&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 204 match protocol ssh any&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 207 match protocol snmp any&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 208 match protocol telnet any&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 209 match protocol http any&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 210 match protocol https any&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 211 match protocol xml-https any&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\policy map to permit traffic matched by remote_access class&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;policy-map type management first-match management&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; class remote_access&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; permit&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\policy map to do ssl url rewrite on serverfarm address selected&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;policy-map type loadbalance first-match LB-L7-POLICY&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; class class-default&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; sticky-serverfarm SOURCEIP-STICKY-HTTP-SFARM&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; action SSL_URL_REWRITE&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\policy map to define action on traffic matched by SSL-VIP class&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;policy-map multi-match LB-L4-POLICY&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; class SSL-VIP&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; loadbalance vip inservice&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; loadbalance policy LB-L7-POLICY&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; loadbalance vip icmp-reply&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; nat dynamic 1 vlan 805&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; appl-parameter http advanced-options PERSISTENCE-REBALANCE&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; ssl-proxy server TEST-CERT&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;interface vlan 805&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; description "Client Side"&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; ip address 10.66.85.75 255.255.255.224&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; alias 10.66.85.74 255.255.255.224&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; peer ip address 10.66.85.76 255.255.255.224&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; access-group input INBOUND&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; nat-pool 1 10.66.85.78 10.66.85.78 netmask 255.255.255.255&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; service-policy input management&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; service-policy input LB-L4-POLICY&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; no shutdown&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;ip route 0.0.0.0 0.0.0.0 10.66.85.65 &lt;/EM&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above configuration should work fine for URL rewrite, in case you need URL redirection configure following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;rserver redirect url1&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp; webhost-redirection&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://abc.com/xyx"&gt;https://abc.com/xyx&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; 302&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Inservice&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can just configure rserver redirect and call this server in serverfarm. Configure a policy map as shown above and also associate SSL proxy with the corresponding class under policy map.You main URL should come to a VIP specified in class Test and then it will be LB to serverfarm and should be redirected since SSL offloading is there in place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;&lt;SPAN style="font-size: 14pt;"&gt;Related information &lt;/SPAN&gt;&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.cisco.com/document/69021/ace-behavior-static-sticky-and-rserver-down-situation"&gt;ACE behavior with static sticky and rserver down situation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.cisco.com/document/52871/deploying-gss-and-ace-least-loaded-gslb-based-vip-conn-number"&gt;Deploying GSS and ACE in least loaded GSLB based on VIP conn number&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.cisco.com/c/en/us/support/docs/interfaces-modules/ace-application-control-engine-module/107402-ace-sslterm-config.html"&gt;Configure ACE with SSL Termination and URL Rewrite&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Jun 2011 05:48:53 GMT</pubDate>
    <dc:creator>Simon Chow</dc:creator>
    <dc:date>2011-06-19T05:48:53Z</dc:date>
    <item>
      <title>SSL URL Rewrite with wildcard on ACE</title>
      <link>https://community.cisco.com/t5/data-center-and-cloud-knowledge-base/ssl-url-rewrite-with-wildcard-on-ace/ta-p/3123687</link>
      <description>&lt;H2&gt;&lt;SPAN style="font-size: 14pt;"&gt;Introduction&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When doing SSL termination on ACE, there are times when the rserver&amp;nbsp; might not have knowledge that the client only see https and would send a&amp;nbsp; HTTP redirect with a http link (instead of https). This would&amp;nbsp; inadvertently cause the client to leave the encypted session. It's&amp;nbsp; possible to have ACE rewrite the http link to https. This document shows&amp;nbsp; an example configuration to achieve the ACE SSL URL rewrite functionality.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;client browser---------https--------ACE-------http---------rserver&lt;/P&gt;
&lt;P&gt;In the following example, the rserver would send a HTTP 301 redirect with link &lt;A href="http://foo2.bar.com/" rel="nofollow" title="http://foo2.bar.com"&gt;http://foo2.bar.com&lt;/A&gt;, and the ACE would rewrite the link to &lt;A href="https://foo2.bar.com/" rel="nofollow" title="https://foo2.bar.com"&gt;https://foo2.bar.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;&lt;SPAN style="font-size: 14pt;"&gt;Version &lt;/SPAN&gt;&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The configuration shown in this document is created on ACE 4710 Appliance running A3(2.5) version software.&lt;/P&gt;
&lt;P&gt;For the ACE module URL rewrite is supported on version c6ace-t1k9-mz.A2_1.bin or later. Remember that both ACE will need to have certificates and keys.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;&lt;SPAN style="font-size: 14pt;"&gt;Key Config&lt;/SPAN&gt;&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The key configuration is under the "action-list" command. The following commands to rewrite &lt;A href="http://foo2.bar.com/" rel="nofollow" title="http://foo2.bar.com"&gt;http://foo2.bar.com&lt;/A&gt; to &lt;A href="https://foo2.bat.com/" rel="nofollow" title="https://foo2.bat.com"&gt;https://foo2.bar.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE&gt;
&lt;SPAN style="font-family: webdings;"&gt;action-list type modify http SSL_URL_REWRITE&lt;/SPAN&gt;
&lt;SPAN style="font-family: webdings;"&gt;ssl url rewrite location "foo2\.bar\..*"&lt;/SPAN&gt;
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;, the use of wildcard with .*&lt;/P&gt;
&lt;P&gt;This would rewrite &lt;A href="http://foo2.bar.com/" rel="nofollow" title="http://foo2.bar.com"&gt;http://foo2.bar.com&lt;/A&gt; to &lt;A href="https://foo2.bar.com/" rel="nofollow" title="https://foo2.bar.com"&gt;https://foo2.bar.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;or &lt;A href="http://foo2.bar.org/" rel="nofollow" title="http://foo2.bar.org"&gt;http://foo2.bar.org&lt;/A&gt; to &lt;A href="https://foo2.bar.org/" rel="nofollow" title="https://foo2.bar.org"&gt;https://foo2.bar.org&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;or &lt;A href="http://foo2.bar.xyz/" rel="nofollow" title="http://foo2.bar.xyz"&gt;http://foo2.bar.xyz&lt;/A&gt; to &lt;A href="https://foo2.bar.xyz/" rel="nofollow" title="https://foo2.bar.xyz"&gt;https://foo2.bar.xyz&lt;/A&gt; etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two dots is needed for the wildard to work. The "\." (escape&amp;nbsp; character \ and .) means to match a dot. Then ".*" means wildcard (zero or&amp;nbsp; more of any character).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the list a list of the supported characters ACE use in&amp;nbsp; regular expressions. Please see "Special Characters for Matching String&amp;nbsp; Expressions" in the following link:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/ssl/guide/terminat.html#wp1185066" rel="nofollow" title="http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/ssl/guide/terminat.html#wp1185066"&gt;http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/ssl/guide/terminat.html#wp1185066&lt;/A&gt;&lt;/P&gt;
&lt;H1&gt;&amp;nbsp;&lt;/H1&gt;
&lt;H1&gt;&lt;SPAN style="font-size: 14pt;"&gt;Detail Configuration&lt;/SPAN&gt;&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;access-list INBOUND line 8 extended permit ip any any&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;parameter-map type http PERSISTENCE-REBALANCE&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; persistence-rebalance&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\define the rserver host&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;rserver host SERVER1&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; ip address 10.66.85.162&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; inservice&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\as mentioned above in Key Config section&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;action-list type modify http SSL_URL_REWRITE&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; ssl url rewrite location "foo2\.bar\..com"&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\define serverfarm with the rserver&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;serverfarm host HTTP-SFARM&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; rserver SERVER1 80&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; inservice&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;ssl-proxy service TEST-CERT&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; key simon.key&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; cert simon.crt&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\select the address of the server defined in serverfarm&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;sticky ip-netmask 255.255.255.255 address source SOURCEIP-STICKY-HTTP-SFARM&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; replicate sticky&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; serverfarm HTTP-SFARM&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\class map to match SSL traffic to VIP address&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;class-map match-all SSL-VIP&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 2 match virtual-address 10.66.85.77 tcp eq https&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\class map to match management traffic&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;class-map type management match-any remote_access&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 202 match protocol icmp any&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 204 match protocol ssh any&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 207 match protocol snmp any&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 208 match protocol telnet any&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 209 match protocol http any&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 210 match protocol https any&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; 211 match protocol xml-https any&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\policy map to permit traffic matched by remote_access class&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;policy-map type management first-match management&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; class remote_access&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; permit&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\policy map to do ssl url rewrite on serverfarm address selected&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;policy-map type loadbalance first-match LB-L7-POLICY&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; class class-default&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; sticky-serverfarm SOURCEIP-STICKY-HTTP-SFARM&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; action SSL_URL_REWRITE&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;\\policy map to define action on traffic matched by SSL-VIP class&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;policy-map multi-match LB-L4-POLICY&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; class SSL-VIP&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; loadbalance vip inservice&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; loadbalance policy LB-L7-POLICY&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; loadbalance vip icmp-reply&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; nat dynamic 1 vlan 805&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; appl-parameter http advanced-options PERSISTENCE-REBALANCE&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;&amp;nbsp;&amp;nbsp; ssl-proxy server TEST-CERT&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;interface vlan 805&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; description "Client Side"&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; ip address 10.66.85.75 255.255.255.224&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; alias 10.66.85.74 255.255.255.224&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; peer ip address 10.66.85.76 255.255.255.224&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; access-group input INBOUND&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; nat-pool 1 10.66.85.78 10.66.85.78 netmask 255.255.255.255&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; service-policy input management&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; service-policy input LB-L4-POLICY&lt;/EM&gt;
&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt; no shutdown&lt;/EM&gt;

&lt;EM style="font-family: arial,helvetica,sans-serif; "&gt;ip route 0.0.0.0 0.0.0.0 10.66.85.65 &lt;/EM&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above configuration should work fine for URL rewrite, in case you need URL redirection configure following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;rserver redirect url1&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp; webhost-redirection&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://abc.com/xyx"&gt;https://abc.com/xyx&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; 302&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Inservice&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can just configure rserver redirect and call this server in serverfarm. Configure a policy map as shown above and also associate SSL proxy with the corresponding class under policy map.You main URL should come to a VIP specified in class Test and then it will be LB to serverfarm and should be redirected since SSL offloading is there in place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;&lt;SPAN style="font-size: 14pt;"&gt;Related information &lt;/SPAN&gt;&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.cisco.com/document/69021/ace-behavior-static-sticky-and-rserver-down-situation"&gt;ACE behavior with static sticky and rserver down situation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.cisco.com/document/52871/deploying-gss-and-ace-least-loaded-gslb-based-vip-conn-number"&gt;Deploying GSS and ACE in least loaded GSLB based on VIP conn number&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.cisco.com/c/en/us/support/docs/interfaces-modules/ace-application-control-engine-module/107402-ace-sslterm-config.html"&gt;Configure ACE with SSL Termination and URL Rewrite&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2011 05:48:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/data-center-and-cloud-knowledge-base/ssl-url-rewrite-with-wildcard-on-ace/ta-p/3123687</guid>
      <dc:creator>Simon Chow</dc:creator>
      <dc:date>2011-06-19T05:48:53Z</dc:date>
    </item>
  </channel>
</rss>

