04-05-2011 07:25 AM
I have a server that has multiple web instances and each web instance is using a different domain. For example,
www.spoton.com
www.catchtheride.com
www.skipper.com
I have about 23 different domains that I need to make sure are redirected if the initial request is http. Is there a way to create a redirect service that would redirect the host and the path without creating a redirect service for each domain. I know in the ACE you can us the https://%h%p, but I can't seem to get this same config into the CSS.
04-05-2011 10:12 AM
Hi,
Yes you can do want you are looking to acheive on the CSS. What you will need to do is the following:
1) create a redirect service, regular service and two content rules (redirect rule and ssl rule) for each domain you want to catch:
service redirect1 type redirect protocol tcp port 80 keepalive type none domain "https://domain1.test.net" active
service siteyouwanttoredirectallto443
ip address 4.4.4.4
protocol tcp
port 80
active
content domain1.test.net-redir vip address 10.1.1.100 protocol tcp port 80 url "//domain1.test.net/*" add service redirect1 active
content domain1.test.net-SSL vip address 10.1.1.100 protocol tcp port 443 add service siteyouwanttoredirectallto443 active
04-06-2011 01:23 PM
So I have to build a serperate redirect service and content rule for each domain I need to redirect? There is no way to tell the CSS to just reidrect whatever domain and path is in the request. I want to build one redirect service based on host and path. One content rule for port 80 pointing to the redirect service. This redirect is only to force all request to 443 instead of 80 for whatever the user puts in for the url.
Is this possible.
service redirect1
type redirect
protocol tcp
port 80
keepalive type none
domain "https://%h/%p
active
content domain1.test.net-redir
vip address 10.1.1.100
protocol tcp
port 80
url "/*"
add service redirect1
active
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