Forum Discussion
souravkayal_287
Nimbostratus
Oct 27, 2017IRule to redirect to https:8443
so I have a VS on 8443 with ssl and nodes on 9502 I am setting up a redirection http VS on 9500 and it should redirect all requests to the HTTPS VS on 8443. Facing some issues.
I had made this:...
Stanislas_Piro2
Cumulonimbus
Oct 27, 2017when connecting to the URL http://srv.company.com:9500, the Host header is srv.company.com:9500. you have to strip the port before adding the destination port.
you can do it with
[getfield [HTTP::host] ":" 1]
when HTTP_REQUEST {
HTTP::redirect "https://[getfield [HTTP::host] ":" 1]:8443[HTTP::uri]"
}
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
