03-20-2008 05:57 PM
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.
03-21-2008 05:47 AM
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.
03-21-2008 07:41 AM
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.
03-23-2008 11:24 AM
Marc,
this is correct.
You can use the same ip/port in different content rules and use the url to distinguish betwen them.
Gilles.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide