Forum Discussion
What's the meaning of " : 1" in irule-redirect HTTP to HTTPs
Check the description in the docs for getfield.
To extract only the hostname from the host header (strips any trailing ":" port specification)
HTTP::host returns the host portion. The 'host' portion of the request can include an optional port.
So if your application's non-https port is anything other than 80 the request will look like:
http://example.com:9090/path/to/page
https://[HTTP::host][HTTP::uri]
would then redirect the user to:
https://example.com:9090/path/to/page
which isn't going to work.
It's not neccesary if you are applying it to a VIP on port 80. If you leave in the getfield you can use it for vips on any port.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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