2 Replies Latest reply: Sep 23, 2013 3:58 PM by SteveElkind RSS

    Use of Apache 2.2 mod_deflate and mod_cache with WebLogic 10.3.x

    SteveElkind

      I'm seeing questions here and elsewhere, but nothing in the way of replies.  How can I get mod_deflate (and later mod_cache) working in combination with mod_wl?

       

      We have large amounts of textual (compressible) content coming back from WebLogic to the user over WAN links, some of it static (like javascript files), and some of it dynamically-generated HTML.  The content-types coming back to the browser are correct, but mod_deflate is not kicking in for mod_wl-served content.  I know it works, but it's only for the limited amount of static content on our login page, which is served directly from Apache.

       

      While I know we can split our static content off to Apache and at least get some benefit, our developers are expressing displeasure at the complexity it adds to their development process where there is no Apache on the desktop.

       

      I can't seem to make it work at all.  The following is my current set of settings from httpd.conf, which should DEFLATE globally.

       

      FWIW, the version of mod_wl.so seems to be indicated by the following string from the binary:

      WebLogic Server Plugin version 1.1 <WLSPLUGINS_11.1.1.4.0_LINUX.X64_101209.1115>

       

       

      # mod_deflate settings

       

      # compress text, html, javascript, css, xml:

      AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css text/javascript application/xml application/json application/xhtml+xml application/rss+xml application/javascript application/x-javascript


      ...


      LoadModule weblogic_module modules/mod_wl.so

      #

      ...

      #LoadModule substitute_module modules/mod_substitute.so

      LoadModule deflate_module modules/mod_deflate.so

      #LoadModule ldap_module modules/mod_ldap.so

      ...

      # WEBLOGIC

      #

      <IfModule mod_weblogic.c>

              KeepAliveSecs 300

              KeepAliveEnabled ON

              KeepAliveEnabled TRUE

              WLSocketTimeoutSecs 10

              WLIOTimeoutSecs 30000

              ConnectRetrySecs 2

              Debug ERR

              DebugConfigInfo OFF

              WLTempDir /local/apps/prpusr/prp-it/wl_logs

              WLLogFile /local/apps/prpusr/prp-it/wl_logs/weblogic.log

      </IfModule>

      ##################################################################################

      <Location /pega>

              SetHandler weblogic-handler

              WLCookieName jsessionPU

              WebLogicCluster host1:22110,host2:22120

      </Location>

      <Location /pega-ni>

              SetHandler weblogic-handler

              WLCookieName jsessionPA

              WebLogicCluster host1:22210,host2:22220

      </Location>

      <Location /prpUI>

              SetHandler weblogic-handler

              WLCookieName jsessionUI

              WebLogicCluster host2:22310,host1:22320

      </Location>

      ...

       

      ...