cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1117
Views
0
Helpful
3
Replies

HTTP to HTTPS redirect

Marc.Halleux
Level 1
Level 1

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 3

Gilles Dufour
Cisco Employee
Cisco Employee

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.

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.

Marc,

this is correct.

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

Gilles.