https and http to http http::path redirection not working
i think i got my script partially right, but its not redirecting.
so i got one http VS on port 80. lets call it http://aaa.b.com/test (internal URL used within network)
-using default http class
-no cert/ssl
-nothing listening on 443
-pointing to a single default web pool 6 nodes also just listening on port 80 (iis6)
my client has a external and internal URLs for their traffic.
the external is https://xxx.b.com/test
if they are within the internal network going to xxx.b.com, DNS points you to aaa.b.com address.
my client wanted:
if they goto https://xxx.b.com/test internally, it would be redirected to http://aaa.b.com/test
the irule i created was:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "xxx.b.com"} {
HTTP::redirect "http:/aaa.b.com/test"
}
}
i did some troubleshooting and threw some logging, but it was no help
log local0. "redirecting from [HTTP::host]"
if a user went to https://xxx.b.com/test, nothing happened no logging user gets page cannot be displayed. i think i may be missing something, do i need to setup a separate vs on https 443?
if a user went to http://xxx.b.com/test, the log does say: "redirecting from xxx.b.com"
but the user is not redirected. so i think i could be missing some setting outside of irules.
any thoughts on this would be appreciated, sorry i am just a new nub 🙂