Forum Discussion
Ricky_S_79564
Nimbostratus
Oct 12, 2012Java 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. L...
hoolio
Cirrostratus
Nov 20, 2012I don't think it will fix the issue, but you could combine the regexes into one. Also, you could be more specific and escape the periods in the "find" portion of the stream expression to match a period instead of any single character.
{@http://aislive\.invicta\.cantium\.net(:8080|:80)?@https://aislive.invicta.cantium.net@}
Like Steve suggested, I think a tcpdump of the issue would help isolate the issue. You could also add debug logging to STREAM_MATCHED to when the stream filter is matching:
when HTTP_REQUEST {
Disable the stream filter for all requests
STREAM::disable
set debug 1
if {$debug}{
set uri "[HTTP::host][HTTP::uri]"
}
}
when HTTP_RESPONSE {
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Replace any http:// instance with http://
STREAM::expression {@http://aislive\.invicta\.cantium\.net(:8080|:80)?@https://aislive.invicta.cantium.net@}
Enable the stream filter for this response only
STREAM::enable
if {$debug}{log local0. "[IP::client_addr]:[TCP::client_port]: Enabling stream filter for response to $uri - [HTTP::header Content-Type]"}
} else {
Debug only. You can remove when testing is complete
if {$debug}{log local0. "[IP::client_addr]:[TCP::client_port]: Not enabling match for response to $uri - [HTTP::header Content-Type]"}
}
}
when STREAM_MATCHED {
if {$debug}{log local0. "[IP::client_addr]:[TCP::client_port]: Rewriting [STREAM::match] for $uri"}
}
Aaron
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