Forum Discussion
Sachintambat_11
Nimbostratus
Jun 08, 2014URL redirection from https://xyz to https://xyz:9443
Hi,
I want to have URL redirection from https://xyz to https://xyz:9443 .
version : BIG-IP 10.2.4 Build 732.0 Hotfix HF5
8 Replies
- nitass_89166
Noctilucent
doesn't HTTP::redirect work?
HTTP::redirect
https://devcentral.f5.com/wiki/iRules.http__redirect.ashxby the way, you want redirection (not uri rewriting), don't you?
8 things you can do with a proxy by Lori MacVittie
https://devcentral.f5.com/articles/8-things-you-can-do-with-a-proxy.U5R6RihhcdU- Sachintambat_11
Nimbostratus
I want irule for redirection, I used below irule but it doesnt work. when HTTP_REQUEST { HTTP::redirect https://[HTTP::host]:9443[HTTP::uri] } Please suggest if rule is correct or not?
- nitass
Employee
doesn't HTTP::redirect work?
HTTP::redirect
https://devcentral.f5.com/wiki/iRules.http__redirect.ashxby the way, you want redirection (not uri rewriting), don't you?
8 things you can do with a proxy by Lori MacVittie
https://devcentral.f5.com/articles/8-things-you-can-do-with-a-proxy.U5R6RihhcdU- Sachintambat_11
Nimbostratus
I want irule for redirection, I used below irule but it doesnt work. when HTTP_REQUEST { HTTP::redirect https://[HTTP::host]:9443[HTTP::uri] } Please suggest if rule is correct or not?
- nitass
Employee
it looks okay to me.
version root@ve10(Active)(tmos) show sys version | grep -A 6 Package Main Package Product BIG-IP Version 10.2.4 Build 817.0 Edition Hotfix HF7 Date Mon May 20 15:08:56 PDT 2013 config root@ve10(Active)(tmos) list ltm virtual bar ltm virtual bar { destination 172.28.24.9:https ip-protocol tcp mask 255.255.255.255 pool foo profiles { clientssl { context clientside } http { } tcp { } } rules { qux } snat automap } root@ve10(Active)(tmos) list ltm rule qux ltm rule qux { when HTTP_REQUEST { HTTP::redirect https://[HTTP::host]:9443[HTTP::uri] } } test [root@ve10:Active] config curl -Ik https://172.28.24.9 HTTP/1.0 302 Found Location: https://172.28.24.9:9443/ Server: BigIP Connection: Keep-Alive Content-Length: 0- Sachintambat_11
Nimbostratus
I used the below Irule I used below irule but it doesnt work. when HTTP_REQUEST { HTTP::redirect https://[HTTP::host]:9443[HTTP::uri] } But it wont work. can you suggest. I have created two Virtual server. one for VIP port 9443. and another VIP port 443 where we are using redirection by irule.
- nitass_89166
Noctilucent
it looks okay to me.
version root@ve10(Active)(tmos) show sys version | grep -A 6 Package Main Package Product BIG-IP Version 10.2.4 Build 817.0 Edition Hotfix HF7 Date Mon May 20 15:08:56 PDT 2013 config root@ve10(Active)(tmos) list ltm virtual bar ltm virtual bar { destination 172.28.24.9:https ip-protocol tcp mask 255.255.255.255 pool foo profiles { clientssl { context clientside } http { } tcp { } } rules { qux } snat automap } root@ve10(Active)(tmos) list ltm rule qux ltm rule qux { when HTTP_REQUEST { HTTP::redirect https://[HTTP::host]:9443[HTTP::uri] } } test [root@ve10:Active] config curl -Ik https://172.28.24.9 HTTP/1.0 302 Found Location: https://172.28.24.9:9443/ Server: BigIP Connection: Keep-Alive Content-Length: 0- Sachintambat_11
Nimbostratus
I used the below Irule I used below irule but it doesnt work. when HTTP_REQUEST { HTTP::redirect https://[HTTP::host]:9443[HTTP::uri] } But it wont work. can you suggest. I have created two Virtual server. one for VIP port 9443. and another VIP port 443 where we are using redirection by irule.
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
