Forum Discussion
Juanma_47808
Nimbostratus
Mar 30, 2008Java script redirection problem
Hello,
I am trying to set up a BigIP LTM to load balance a https service. There is an upload page in the WEB that uses a java script that changes the URL client from:
https://virtualserver.mydomain.com
to
https://realserver.mydomain.com.
I have checked out in the http exchange but I have not found any redirection (3xx) or any parameter in the header reponse with the real server. I can only see that the client receives configuration paths to java files and afther that, the client changes from URL.
The problem is that I can´t modify java script code because it owns to a third corporate.
I would need to keep the same virtual server URL for the complete SSL session, without any jump to real load balanced servers. Is that possible?
Could you help me please?
I have never seen any forum as useful as this.
Thanks a lot for your help.
Juan
- The_Bhattman
Nimbostratus
It's sounds like javascript isn't doing the redirection, but probably executing a class object in a jar file that the client is being pointed to. Is that Javascript critical to the overall functionality of the website or does it simply serve to redirect? - Juanma_47808
Nimbostratus
- The_Bhattman
Nimbostratus
I think I understand your point. You might want to look at SSL rewriting options within the SSL PROFILE. Another item is to use an IRULE such as the followingwhen HTTP_REQUEST { switch [HTTP::host] { "realserver.mydomain.com" { HTTP::redirect https://virtualserver.mydomain.com/[uri]" } } }
when HTTP_REQUEST { if { [HTTP::host] eq " realserver.mydomain.com" } { HTTP::redirect https://virtualserver.mydomain.com/[uri]" } }
- Juanma_47808
Nimbostratus
Hello cmbhatt, - The_Bhattman
Nimbostratus
I can certainly say that the idea scenerio is to fix the code so BIGIP doesn't necessary have to mask the issue.Posted By Joe on 03/30/2007 1:27 PM
- hoolio
Cirrostratus
When using a stream profile, it's a good idea to configure it with an iRule so that the stream filter is only applied when you intend it. Here is an example:when HTTP_RESPONSE { Disable the stream filter by default STREAM::disable if {[HTTP::header value Content-Type] starts_with "text"} { Replace the modified domain with the original STREAM::expression "@realserver.mydomain.com@virtualserver.mydomain.com@" Enable the stream filter for this response only STREAM::enable } }
- Juanma_47808
Nimbostratus
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