Java JNLP Launcher.jar not being redirected to port 443
Hi Everyone,
I am fairly new on this forum so please bear with me. I have a problem with opening JNLP files whilst i have an iRule on my virtual server that redirects everything to port 443. Let me give you a background of the architevture and hopefully someone can help.
We have a Virtual server setup the load balances clients to two backend JBOSS/Tom Cat servers. Both the two backend servers only talk and respond in 8080. The communication between client and F5 and back to Client needed to ahve full SSL encryption, so in order for this to happen I needed to have 2 Virtual servers created working off the same single IP. One virtual server is listening on porit 443 and then one is listening on port 80. This ensures when traffic is sent back from the physcial servers (as they only talk in http) http traffic is redirected to https. For this to happen i have an iRule setup on my virtual server listening on port 443.
The iRule is as follows:
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
The Virtual servers have a default http profile and they use a customised Cookie persistence profile. Now everything seemed to be working fine, but I have noticed that there are issues launching JNLP files via a JNLP launcher. File are not opening and I keep getting an error message saying unable to launch application. Looking at the URL it shows that it is trying to talk over port 80, but because we have a redirect it seems the Java application does not like the re-direct and keeps trying to push the client over port 80. After troubleshooting with packet tracers and qkviews here is what I believe is happening:
The client is hitting the virtual server over port 80 and it is being redirected fine to port 443. The F5 is sending 302 showing the redirects. However when attempting to open launcher.jar the client does not come back to the F5 on 443. The client comes back to the F5 on 80 which in turn another 302 is being responded failing the launcher.jar to be opened. It appears the application ensures the client connects to port 80 overriding the headers 302 redirect.
I am looking to see if there are any other iRules i can create or edit the one above which will explicitally redirect launcher.jar to communicate over 443? We have a third party who manage the JBOSS servers and the java app, so is it something where they need to change the connector type from their end to talk in 443?
Any help would be much appreciated
Thanks
Ricky