0 Replies Latest reply on May 3, 2018 7:24 AM by grkjava

    Remote Destination host not working after Gzip filter in Wildfly

    grkjava

      We have configured gzip filter on wildfly as follows

       

      <filters>
        
      <response-header name="server-header" header-name="Server" header-value="WildFly/8"/>
        
      <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
        
      <response-header name="x-frame-options-header" header-name="X-Frame-Options" header-value="SAMEORIGIN"/>
        
      <response-header name="x-xss-protection-header" header-name="X-XSS-Protection" header-value="1; mode=block"/>
        
      <response-header name="x-csp-header" header-name="Content-Security-Policy" header-value="default-src https: http:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https: http:; style-src http: https: 'unsafe-inline'; img-src 'self' data: http: https:; connect-src http: https: ws:;"/>
        
      <gzip name="gzipFilter"/>
        
      <response-header name="Vary-header" header-name="Vary" header-value="Accept-Encoding"/>
        
      </filters>

       

      Please find below REGEX

      <filter-ref name="gzipFilter" predicate="regex[pattern='(?:application/javascript|text/html|text/xml|text/plain|text/css|text/javascript)(;.*)?', value=%{o,Content-Type}, full-match=true]"/>

       

      After doing these changes, remote destination host is not working

      <socket-binding-group ....>
        
      <outbound-socket-binding name="mail-smtp">
        
      <remote-destination host="localhost" port="25"/>
        
      </outbound-socket-binding>
        
      <outbound-socket-binding name="proxyConfig">
        
      <remote-destination host="10.131.146.10" port="8087"/>
        
      </outbound-socket-binding>
        
      </socket-binding-group>

       

      This remote destination IP is Apex system and using it for reporting. When we try to access then system is keep on loading and couldn't find any response back.

      Could you please help me, what could be the issue here?

      Thanks in Advance