Forum Discussion
meena_60183
Nimbostratus
Feb 07, 2008Hide port numbers on the URL
I need some help in configuring an iRule to hide a port number on the URL. I am very new to the F5 world.
I have a URL
http://10.35.253.131:8080
and I need to redirect them to https://10.35.253.131:8081 and I did that with a profile. Now, they do not want the port number 8081 to show up on the URL. How can I do that?
I am just getting confused between iRule and profile and not sure when to use what.
thanks,
- hoolio
Cirrostratus
You should be able to define the VIP on the port you want clients to make requests to and the pool members on whatever port the web server listens on. Just make sure port translation is enabled on the VIP (which it is by default).when HTTP_RESPONSE { if { [HTTP::status] starts_with "3" } { HTTP::header replace Location [string map -nocase {myold.hostname.com:8081 mynew.hostname.com:8080} [HTTP::header Location]] } }
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