Question

How can I enable page/gzip compression for JBoss EAP 6.2?

I have found information online for older JBoss AS, but nothing for EAP.

Was it helpful?

Solution

you can do this by:

file : standalone.xml (JBoss AS 7+ )

Position : right after

<extensions>

</extensions>

<system-properties>
    <property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION" value="on"/>
    <property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION_MIME_TYPES" value="text/javascript,text/css,text/html,text/xml,text/json"/>  <!-- add other content types you want to gzip -->
</system-properties>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top