Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

CSS Redirection on an odd extension

The customer comes to "https://xx.xxx.xx/apc_prd/WsExternalApc.asmx?WSDL "

But need to redirect this to "https://xx.xxx.xx/apc_prd/WsExternalApc.wsdl"

Issue is the CSS does not like the ?WSDL

Tried the following without success:

content APC_PRD_WDSL_80

vip address 192.168.206.146

add service SVANWEBPRD03_APC_PRD

add service SVANWEBPRD04_APC_PRD

advanced-balance arrowpoint-cookie

protocol tcp

port 80

url "/apc_prd/WsExternalApc.asmx?WSDL"

redirect "/apc_prd/WsExternalApc.wsdl"

active

So is there a way to do this?

3 REPLIES
Community Member

Re: CSS Redirection on an odd extension

Hello,

You are saying that the traffic is coming on https, and you need to do a redirect to a different url.

Well, so far if you don't have a SSL module, and you are not doing SSL termination on the CSS, you wont be able to do the redirect, since the traffic is coming encrypted and the CSS is not able to do it.

Now, if you are doing SSL termination on the CSS, once you have decrypted the traffic please try this:

Create a new service:

Service redirect

keepalive type none

type redirect

no prepend-http

redirect-string "https://xx.xxx.xx/apc_prd/WsExternalApc.wsdl"

active

content APC_PRD_WDSL_80

vip address 192.168.206.146

add service redirect

protocol tcp

port 80

url "/apc_prd/WsExternalApc.asmx?WSDL"

active

Now, everything that comes on port 80 with that vip and that specific url is going to be redirected to "https://xx.xxx.xx/apc_prd/WsExternalApc.wsdl"

- Rodrigo

Community Member

Re: CSS Redirection on an odd extension

The issue so far is the line

url "/apc_prd/WsExternalApc.asmx?WSDL"

CSS complains "%% Unsupported or invalid content rule URI"

CSS11503(config-owner-content[TEST-APCD_WDSL_80])# url "/apc_prd/WsExternalApc.asmx?WSDL"

%% Unsupported or invalid content rule URI

CSS11503(config-owner-content[TEST-APCD_WDSL_80])#

Cisco Employee

Re: CSS Redirection on an odd extension

looks like the CSS only accepts 7 characters after the dot.

CSS11503-2(config-owner-content[gdufour-WWW])# url "/.1234567"

CSS11503-2(config-owner-content[gdufour-WWW])# no url

CSS11503-2(config-owner-content[gdufour-WWW])# url "/.12345678"

%% Unsupported or invalid content rule URI

CSS11503-2(config-owner-content[gdufour-WWW])#

Gilles

186
Views
0
Helpful
3
Replies
CreatePlease to create content