kraigk_52257
May 02, 2014Nimbostratus
Moving IIS hosting.asp redirects to iRules
Need help moving IIS redirects to iRule. We have a long list of CNAME DNS records pointing to one IIS web server where we have a "hosting.asp" that does redirection. Some redirects are for sites and pages on the server itself and others are to completely different servers. Host header values are matched up to the CNAME's
<%
Response.buffer=true
select case (Request.ServerVariables("SERVER_NAME"))
case "url1.company.com"
Response.redirect "/redirect.htm"
case "url2.company.com"
Response.redirect "http://anyname1.company.com/services/directory"
case "url2.company.com"
Response.redirect "https://anyplace2.company.compro/profile/Unsolicited/webpage.htm"
end select
%>
We've recently moved this IIS server behind the LTM and are terminating SSL there. I'd like to move all this asp to iRule. Any help would be appreciated.