# Compression in Servoy web client.

**URL:** <https://forum.servoy.com/t/compression-in-servoy-web-client/17241>\
**Category:** Classic Servoy\
**Created:** [May 27, 2013, 10:19am UTC](https://forum.servoy.com/t/compression-in-servoy-web-client/17241 "2013-05-27T10:19:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashutoslenka426](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@ashutoslenka426](https://forum.servoy.com/u/ashutoslenka426)\
**Post date:** [May 27, 2013, 10:19am UTC](https://forum.servoy.com/t/compression-in-servoy-web-client/17241/1 "2013-05-27T10:19:06Z")

</div>

Hi All,

I am trying to compress the web client content using the external httpd server . I am following this link [http://wiki.servoy.com/display/public/D … the+server](http://wiki.servoy.com/display/public/DOCS/Tuning+the+server) .  
I am setting up the mod\_deflate in the Apache httpd server . How can we connect our Servoy Application server with the external Apache httpd server ? . Is there any documentation for it.

Please provide some suggestions on this.

---

<div class="post-metadata">

**Author:** ![Yeroc](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@Yeroc](https://forum.servoy.com/u/Yeroc)\
**Post date:** [May 28, 2013, 7:13pm UTC](https://forum.servoy.com/t/compression-in-servoy-web-client/17241/2 "2013-05-28T19:13:27Z")

</div>

You would use the mod\_jk or mod\_proxy\_ajp module depending on your version of Apache. There are instructions at [http://wiki.servoy.com/display/public/D … stallation](http://wiki.servoy.com/display/public/DOCS/Load+Balancer+installation). In your case you’ll just have one Servoy server but the concept and setup is the same as a basic load balancing configuration.

---

<div class="post-metadata">

**Author:** ![ashutoslenka426](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@ashutoslenka426](https://forum.servoy.com/u/ashutoslenka426)\
**Post date:** [May 29, 2013, 9:41am UTC](https://forum.servoy.com/t/compression-in-servoy-web-client/17241/3 "2013-05-29T09:41:41Z")

</div>

Thanks Yeroc for your reply . I will be checking this.

---

<div class="post-metadata">

**Author:** ![nestrocuation](https://avatars.discourse-cdn.com/v4/letter/n/e19adc/32.png) [@nestrocuation](https://forum.servoy.com/u/nestrocuation)\
**Post date:** [June 6, 2013, 8:40pm UTC](https://forum.servoy.com/t/compression-in-servoy-web-client/17241/4 "2013-06-06T20:40:47Z")

</div>

Hey Ashutos ,

Did you get apache load balancer for servoy single server working .

I tried to do as suggested on [http://wiki.servoy.com/display/public/D … stallation](http://wiki.servoy.com/display/public/DOCS/Load+Balancer+installation) and as yeroc suggested . but when i do with this i get

```auto
"No data received"
Unable to load the webpage because the server sent no data.

```

My Jk module is mod\_jk/1.2.35 PHP/5.2.17  
I have centos with cpanel .  
Default HTTPD port is 8081 , and right now no domain name so using external IP

My Server.xml

```auto
<Server port="8005" shutdown="SHUTDOWN_NOW">
  
  <Service name="Catalina">
    
    <Connector port="8009"
   enableLookups="false" maxThreads="500" connectionTimeout="60000"
   redirectPort="8443" useBodyEncodingForURI="true" protocol="AJP/1.3" />

    
    
    <Engine jvmRoute="servoy1" name="Catalina" defaultHost="localhost">

      
      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      
         <Host name="localhost" appBase="webapps"
                            unpackWARs="true" autoDeploy="true"
                            xmlValidation="false" xmlNamespaceAware="false">

        
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs" prefix="localhost_access_log." suffix=".txt"
                 pattern="common"/>

        <Context path="/lib" docBase="../../lib"/>
        <Context path="/plugins" docBase="../../plugins"/>
        <Context path="/beans" docBase="../../beans"/>
        <Context path="/lafs" docBase="../../lafs"/>
      </Host>
    </Engine>
  </Service>
</Server>

```

My httpd.conf

```auto
LoadModule jk_module modules/mod_jk.so
# JK/Worker configuration

    # Where to find workers.properties
    JkWorkersFile conf/workers.properties
    # Where to put jk logs
    JkLogFile logs/mod_jk.log
    # Set the jk log level [debug/error/info]
    JkLogLevel info
    JkMount /* loadbalancer

    # In case you want to be able to monitor JK status
    # <Location /jkmanager/>
    # JkMount jkstatus
    # Order deny,allow
    # Deny from all
    # Allow from 127.0.0.1
    # </Location>ls

```

Workers.property

```auto
# The workers that your plugins should create and work with
# ---------------------------------------------------------
# add "jkstatus" to this list in case you want to be able to monitor JK status
worker.list=servoy1, servoy2, loadbalancer

# Define ajp13 workers for Servoy Tomcat servers in cluster
# ---------------------------------------------------------

# WORKER servoy1
worker.servoy1.port=8009
worker.servoy1.host=localhost
worker.servoy1.type=ajp13
worker.servoy1.fail_on_status=-503
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.servoy1.lbfactor=1

# Load balancer
# -------------
# The loadbalancer (type lb) workers perform wighted round-robin
# load balancing with sticky sessions.
# Note:
# ----> If a worker dies, the load balancer will check its state
# once in a while. Until then all work is redirected to peer
# workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=servoy1
worker.loadbalancer.sticky_session = true

# In case you want to be able to monitor JK status
# http://localhost:8080/jkmanager/
# ------------------------------------------------

# Define a 'jkstatus' worker using status
#worker.jkstatus.type=status

```

Is there anything i am missing .
