Forum Discussion
Otto_Kretzer_68
Nimbostratus
Feb 02, 2006Redirect Needed.. please help
Im not a programmer but here is what i understand is the problem, f5 support say i need a irule and directed me to this site. I hope my explanation makes sense, here is what is happening
1. A Users comes in on an SSL Connection
2. BigIP offloads(terminates) the SSL, and sends the request onto the IIS server in Plain Text
3. The IIS server than passes the plain text request onto the backend JBoss application server
4. The JBoss server handles the request, and generates a redirect URL that will be sent back to the user. Since JBoss thinks the request came in on plain text, it generates the redirect URL to a plaintext site. (since the session is in SSL, the redirect will be handed back to the user in the SSL session, but redirect to a normal 80 session when it hits the user...so the BigIP DOES handle the SSL session properly from start to finish, but the URL being redirected to is coded to point at a HTTP session).
So it seems i need a redirect the rewriets the URI's to https. Does this makes sense? can someone help me with a irule for it?
I believe the big up has a rewrite redirect in the http profile and i have tried that but im told it redirects (3xx) resonses only and i think mine are 4xx responses.
thank you for the help
- If this is a straight redirect, then the correct HTTP status code is 301. 4xx codes are meant for client errors. Here's a listing of the HTTP status codes
- Otto_Kretzer_68
Nimbostratus
is there a way to check if the server is correctly returning 3xx code? Im new with this big ip so please bare with me as im learning . - Colin_Walker_12Historic F5 AccountWell, there is the HTTP::status command, (wiki reference: Click here) if you're looking to see what status the requests are being sent as.
when HTTP_RESPONSE { log local0. "Status code is: [HTTP::status]" }
- Otto_Kretzer_68
Nimbostratus
not sure what im trying to find out :-), im to new to this to understand much of it, but basically if we terminate ssl on the iis server the programmers app works, if we terminate at the big ip, their app doesnt work. The details are explained in the first post in this thread. I dont know how to write irules but is someone can write something for me that would work i would appreciate it, thanks - Earnest_Dyke_10
Nimbostratus
I am working with Otto on this and I have a follow-up. - Earnie, can you explain exactly what you mean when you are referring to "changing the scheme"?. If the BIG-IP is terminating an SSL connection and sending clear HTTP to the backend server the process goes like this:
- Earnest_Dyke_10
Nimbostratus
Joe, - Otto_Kretzer_68
Nimbostratus
Joe, - Earnie pointed out that your application injects both http and https links to the same domain. Since I don't know your application, it's hard to recommend a solution to this.
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