Forum Discussion

ghost-rider_124's avatar
ghost-rider_124
Icon for Nimbostratus rankNimbostratus
Dec 08, 2014

F5 LTM and Javascript error

Hello Experts

 

I am facing one issue with F5 LTM. There is one web application published on F5 with https offload. Everything is working fine, one page with javascript is not displaying anything and load page with error. Please advise what to do?

 

"Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Tablet PC 2.0) Timestamp: Mon, 8 Dec 2014 05:59:15 UTC

 

Message: Syntax error Line: 855 Char: 82 Code: 0 URI: https://abc.com/arcgis_js_api/library/3.8/3.8/

 

Message: 'dojo' is undefined Line: 29 Char: 1 Code: 0 URI: https://abc.com/MapServer?f=jsapi

 

17 Replies

  • HTTPS offload and URL rewrites does not work fine with Java. Which application is it ? Is it some standard application or custom built ?

     

    • ghost-rider_124's avatar
      ghost-rider_124
      Icon for Nimbostratus rankNimbostratus
      Hi. I am not rewriting the javascript. I am just rewriting the "text" in body for http to https and hostname and location header. Could you please any possible cause of this? How I can clear the javascript loaded in to browser?
    • Pratik_125797's avatar
      Pratik_125797
      Icon for Nimbostratus rankNimbostratus
      Rewriting will work with HTML but not with Java. That is why I asked which application are you using. For eg-: If its jinitiator with Oracle you have to do following settings -: http://oracle.3dub.com/2011/02/01/ssl-cert-workaround-for-oracle-forms-behind-f5/
    • ghost-rider_124's avatar
      ghost-rider_124
      Icon for Nimbostratus rankNimbostratus
      I will check that. But In javascript file, there is only one URL and I manually change the real hostname and http to virtual hostname and https but also the same error. Could you give me some direction how to troubleshoot this
  • I am facing a similar issue with kronos. I have two VIPs listening on HTTP & HTTPS. The HTTP has a simple https redirect to the main page, and the HTTPS VIP with a streaming profile has the following iRule:

    when HTTP_REQUEST {
         tell server not to compress response
        HTTP::header remove Accept-Encoding
    
         disable STREAM for request flow
        STREAM::disable
    }
    when HTTP_RESPONSE {
         catch and replace redirect headers
        if { [HTTP::header exists Location] } {
            HTTP::header replace Location [string map {"http://" "https://"} [HTTP::header Location]]
        }
    
         only look at text data
        if { [HTTP::header Content-Type] contains "text" } {
    
             create a STREAM expression to replace any http:// with https://
            STREAM::expression {@http://@https://@}
    
             enable STREAM
            STREAM::enable
        }
    }
    

    There's a run report instance that throws an undefined javascript error when accessing the web-app on the F5.

    • RobS's avatar
      RobS
      Icon for Altostratus rankAltostratus
      Hi, I was wondering if you ever found a solution for this and Kronos? Trying to implement version 7 and it fails loading if I rewrite with https. Thanks.
    • r_dynamo_79563's avatar
      r_dynamo_79563
      Icon for Nimbostratus rankNimbostratus
      Hi Rob, the Kronos admins have to enable the following settings: site.webserver.applet.communication.protocol=https site.security.ssl.termination.on=true site.security.ssl.termination.host=
  • The rewrite irules don't work with Java. Probably you might want to edit httpd.conf and add an alias of

     

  • The backend Servers are not using apache. What's the IIS equivalent of httpd.conf to add an alias of