Forum Discussion
f51
Cumulonimbus
Jun 15, 2018Port Redirection
Hi DC,
When users hit https://abc.com:8443 and we want to redirect them to https://abc.com
Can you please help with logic.
Thanks in advance
Hello,
There are a couple ways to accomplish this:
- iRule: https://devcentral.f5.com/questions/http-to-https-irule
- Profile: https://support.f5.com/csp/article/K14996
A few caveats:
- An HTTP profile needs to be assigned to the virtual server
- If using SSL, SSL must be terminated at the virtual server
- f51
Cumulonimbus
Thank you AceDawg. I am looking for port redirection to .
Create a virtual server that listens on port 8443. Then assign the iRule below to said virtual server:
when HTTP_REQUEST { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
- AceDawg1
Nimbostratus
Hello,
There are a couple ways to accomplish this:
- iRule: https://devcentral.f5.com/questions/http-to-https-irule
- Profile: https://support.f5.com/csp/article/K14996
A few caveats:
- An HTTP profile needs to be assigned to the virtual server
- If using SSL, SSL must be terminated at the virtual server
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