Forum Discussion
Kamila_124825
Nimbostratus
May 29, 2013Redirect to host port
Hi,
I want to create iRule with redirection. Something like this -> Pool under dns name mysite.com:80 should route members HOST:8080/test/
is the iRule like this will work?? ->
when H...
Kevin_Stewart
Employee
May 31, 2013Again, completely depends on your configuration. The HTTP::redirect command issues a physical redirect (via 302 message) to the client. This is what you're doing in your last iRule if the URI doesn't start with "/test". As for the port 8080 business, your pool should define the back end servers by IP and this port. Port translation on the VIP will take care of sending traffic to port 8080. If, however (and this is rare but it happens), the server expects to see this port in the request Host header (ex. Host = www.example.com:8080), then you need to modify the Host header on the way in.
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