Forum Discussion
paul_dcc
Feb 29, 2012Nimbostratus
HTTPS Redirect to a new Port number
We have a number of user that forget to put :9614 on the end of the url they are trying to connect to and then get Internet Explorer cannot display the webpage (https://sspr.dorsetcc.gov.uk/) when it should be (https://sspr.dorsetcc.gov.uk:9614/)
Is there a way I can do this via an IRule
- Bayan_El_Ameen1NimbostratusHello Paul,
- paul_dccNimbostratusI forgot to mention that this is running on ASM, do you think it will still work ?
- Bayan_El_Ameen1NimbostratusYes it should since the traffic will be redirected to the original VS though it should pass in ASM.
- paul_dccNimbostratusHi Bayan,
- Antony_413Nimbostratus
when HTTP_REQUEST { Redirect client to the full host name HTTP::redirect "https://[HTTP::host]:9614[HTTP::uri]" }
- Bayan_El_Ameen1Nimbostratusyou can do it as simple as this:
when HTTP_REQUEST { HTTP::redirect "https:///sspr.dorsetcc.gov.uk:9614[HTTP::uri]" }
- Antony_413NimbostratusGreat debugging trick for seeing what you are putting out to the browser is to insert a logger too (look in your ltm logs for it)
- paul_dccNimbostratusDo I need to create two VS, one with the 443 address on and the other with the 9614 on ?
- Antony_413Nimbostratusyes two separate VIPs one for 443 and the one you have listening on 9614.
- paul_dccNimbostratusHi Antony, that irule worked fine with the two VIP's
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