Forum Discussion
Shawn_Puckett_8
Nimbostratus
Aug 18, 2005SSL Soap and Redirects
Current traffic flow:
Client to F5 on SSL
F5 to Server on 8080
IIS responds to 8080 back to F5
F5 to Client on SSL
Problem:
We have a .Net application (complied) that reads the requested URL and puts it back in HTML code to be sent back to the client. The issue is that the imbedded links are in this format http://xxx.xxx.com:8080/somepic.gif but no 8080 traffic is allowed inbound so they are dropped and the user does not see the somepic.gif. I thought I could fix this buy writing an iRule to redirect all 8080 requests to HTTPS but it doesn't seem to work.
I created a virtual server for 8080 with this iRule:
when HTTP_REQUEST {
if {[TCP::local_port] == "8080"}
{HTTP::redirect https://[HTTP::host][HTTP::uri]}
}
What am I missing?
NOTE: I used a .gif example above but most of the links back are SOAP/XML related so I’m not sure how the F5 handles them, but since they are still HTTP protocol I would think it is the same process in iRules.
Thanks,
Shawn
- The iControl forum is for questions related to our Management API. This question should be posted to the iRules forum.
- Shawn_Puckett_8
Nimbostratus
Thanks for the quick response! - The redirect is a special HTTP response code that the client can choose to interpret or not. As far as I know, the most common toolkits out there don't support HTTP redirects. But, this is standard in all browsers so your rule should work with HTTP based browser requests.
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