03-02-2012 04:51 AM
Is it possible to use the ADX to perfrom http redirects without having a real server configured for the site?
We have a few sites running on our web servers that are just there to redirect requests to other domains. It would be nice to just off-load that to the ADX and remove the sites from the servers, but I haven't been able to figure out a way to do this because the virtual server needs to be boud to a real server in order to actually do anything, including process the CSW rules that perform the redirect.
site1.com --This is our active web site
site2.com --Redirects to site1.com on web servers
site3.com --Redirects to site1.com on web servers
--I would like to remove sites 2 and 3 from the web servers completely and have the ADX perfomr the redirects.
03-07-2012 12:55 PM
The VIP should have at least one real server. Otherwise, CSW will not work. Please, configure a bogus real server and disable health check on it. For example, you can configure a gateway of the ADX as a real server and disable l3-7 health check. It wouldn't affect the gateway in any manner.
03-08-2012 11:36 AM
Thanks! For the bogus IP - can it literally be anything? The management IP of the ADX, for example, or 18.104.22.168? I guess I'm just wondering if it needs to be something valid or not, since the healthcheck will be disabled and any traffic will get redirected before it gets a chance to go to the non-existent RS.
03-08-2012 11:57 AM
Or better yet - these are just simple redirects, so instead of even using a bogus IP, could I just:
The logic here being that if it matches a defined host header it will redirect, but if it doesnt then it just processes it normally?
csw-rule "r1" header "host" equals "www.site1.com" case-insensitive
csw-policy "p1" case-insensitive
match "r1" redirect "www.site2.com"
server virtual v1
port http csw
port http csw policy "p1"
bind http rs1 http rs2 http
Would this work, or would I need to specify something in the policy for traffic that doesnt match a rule as well?
Message was edited by: brian.shaw1