cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
503
Views
0
Helpful
2
Replies

CSS 80 to 443 redirect with wildcard

dpastor
Level 1
Level 1

Hello,

I am doing a 80 to 443 redirect on a 11503 CSS and would like to know if I can do a "wildcard" redirect for after the / ?  For example:

I currently have this

content test-redirect
    vip address 10.10.10.10
    redirect "https://test.domain.com"
    protocol tcp
    port 80
    url "/*"
    active

Can I use this?

content test-redirect
    vip address 10.10.10.10
    redirect "https://test.domain.com/*" <- use the wildcard *
    protocol tcp
    port 80
    url "/*"
    active

Thanks,

Dave

2 Replies 2

Gilles Dufour
Cisco Employee
Cisco Employee

Adding the asterisk, would not do what you want.

The CSS is not going to replace the asterisk with the path introduced by the user.

Here are all the methods to do a redirect on the css.

http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_configuration_example09186a00801de8d6.shtml

Try to use the solution with the domain command.

This should only replace the domain and leave the path unchanged.

Gilles.

Giles,

Thanks, yes, I did some testing and realized the * doesn't work.  I configured a redirect service instead of the redirect content rule as below and this works.

service test-redirect
  type redirect
  domain "https://test.domain.com"
  no prepend-http
  ip address 1.1.1.1
  keepalive type none
  active

Dave