HTTP to HTTPS redirect

Unanswered Question

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Gilles Dufour Fri, 03/21/2008 - 05:47
User Badges:
  • 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.

Gilles Dufour Sun, 03/23/2008 - 11:24
User Badges:
  • Cisco Employee,

Marc,


this is correct.

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


Gilles.

Actions

This Discussion