Forum Discussion
Sams_88783
Apr 05, 2011Nimbostratus
Irule Help
I have created 2 VIP's.
1) VIP is with port 80 and nodes with port 8080
2) VIP is with port 8080 with irule
The requirement is VIP 2 with port 8080 to not have the hard coded domain names but to use the host variable without the port number. These rules should be redirecting to the default port for http.
The below irule will meet the requirement or not ? if not please suggest how to write the irule.
when HTTP_REQUEST
{ HTTP::redirect https://[HTTP::host][HTTP::uri] }
waiting for help at the earliest
- hoolioCirrostratusHi Sams,
http://devcentral.f5.com/wiki/default.aspx/iRules/HTTPToHTTPSRedirect_301.html when HTTP_REQUEST { HTTP::respond 301 Location "https://[getfield [HTTP::host] : 1][HTTP::uri]" }
- Sams_88783NimbostratusHello Aron,
- Sams_88783NimbostratusHello Aron,
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