Forum Discussion
Jeff_Morrison_4
Nimbostratus
Dec 14, 2005Using 80 port for redirection
I have created several Virtual Servers using the same IP and different ports.(80, 4443) When I use the below iRule and set the port redirection to port 4443 all works correctly, however if I use port...
Vincent_Power_9
Nimbostratus
Dec 15, 2005The standard port for https is 443, and most corporate firewalls allow it to pass.
when HTTP_REQUEST {
if { [HTTP::uri] contains "/CMFCU"} {
pool Prod_7001
} elseif { [HTTP::uri] contains "/Customer1"
or [HTTP::uri] contains "/Customer2
or [HTTP::uri] contains "/Customer3" }{
HTTP::redirect https://[HTTP::host][HTTP::uri]
} else {discard}
}
I use similar code in-house, and my virtual server looks like:
virtual webmail-redirect {
destination 1.2.3.4:http
snat automap
ip protocol tcp
profile http tcp
rule webmail-redirect
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects