Forum Discussion
amul_191720
Nimbostratus
Mar 11, 2015HTTPS to HTTP redirection is not happening with irule
Hi ,
Could you please help here in this redirection irule. I tried all the way but i am not able to redirect this https traffic.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/xyz...
amul_191720
Nimbostratus
Mar 11, 2015Hi Stephen,
Thanks for your reponse. But the real situation here..
I need to redirect the https traffic to http ..
The scenario is :
We had URL but this is decommissioned http URL ( with new functionality...
The request here is .. I have created Virtual server with server port 443, I have mapped the irule to redirect https traffic to http.
when HTTP_REQUEST { if {[HTTP::uri] equals {https://xyz.com}} {HTTP::uri {http://zyx.com} } }
Could you please help me with your solution to resolve this issue.
- StephanMantheyMar 11, 2015
Nacreous
Hi Amul, I just added the modified second iRule above. You will bind it to the virtual server and in case of matching hostname it will redirect to http. If you want to use the same virtual server for the old and new hostname you need to use SAN certificates or add multiple client-ssl profiles (requires client support for Server Name Indication [SNI]). If a client enters a URL like this: http://xyz.com/abcpath?defquery=param, the HTTP commands return the following: [HTTP::host] > xyz.com [HTTP::path] > /abcpath [HTTP::query] > defquery=param [HTTP::uri] > /abcpath?defquery=param That´s why your version of iRules did not work as you expected. Thanks, Stephan
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