Forum Discussion
iRule to for http redirect with custom port.
I have flowing problem Client is going to connect as folowing: https://mydomain.com:14444
I had set up a vserver for it and everything is working. I need to create a iRule for HTTP redirect for following case:
Standard http redirect does not work when HTTP_REQUEST { HTTP::redirect https://[HTTP::host][HTTP::uri] }
I had created following custom iRule:
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1]:14444[HTTP::uri] }
It does not work too.
Your iRule should have worked. Anyway, try this one:
when HTTP_REQUEST {
log local0. "https://[getfield [HTTP::host] ":" 1]:[getfield [HTTP::host] ":" 2][HTTP::uri]" HTTP::redirect https://[getfield [HTTP::host] ":" 1]:[getfield [HTTP::host] ":" 2][HTTP::uri]
}
Recent Discussions
Related Content
* 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