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

HTTP to HTTPS redirect

Hi,

We would like to use the same VIP for multiple website (to use less public ips). We also would like to redirect all http request to https. For the moment we did it the following way:

service HTTPREDIRECT

keepalive type none

type redirect

no prepend-http

domain https://www.redirect.com

active

owner customer

content HTTPREDIRECT

vip address x.x.x.x

protocol tcp

port 80

url "/*"

add service HTTPREDIRECT

active

But, with this setup, we need one VIP per domain.

Thank you for your help,

BR

Marc.

3 REPLIES
Cisco Employee

Re: HTTP to HTTPS redirect

Marc,

the certificate required for HTTPS is also assign to a domain.

You can have a certificate for multiple if they share part of the name ie: *.toto.com

For the redirect, you will need one for each domain name.

Then you create also a rule for each domain like this :

content HTTPREDIRECT

vip address x.x.x.x

protocol tcp

port 80

url "//www.toto.com/*"

add service TOTO_REDIRECT

active

Gilles.

New Member

Re: HTTP to HTTPS redirect

Hi Gilles,

Thank you for the answer so far.

Will this mean that i can use a content with the same vip address and the same port as long as i use different URL parameters (that was not clear for me).

BR

Marc.

Cisco Employee

Re: HTTP to HTTPS redirect

Marc,

this is correct.

You can use the same ip/port in different content rules and use the url to distinguish betwen them.

Gilles.

343
Views
0
Helpful
3
Replies
CreatePlease to create content