Announcement

Collapse
No announcement yet.

Release 6.20.0: Updated Apache configuration

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Release 6.20.0: Updated Apache configuration

    The example configuration to configure Apache for Open-Xchange is updated with the newest optimizations achieving the best performance in combination with Open-Xchange. The directory /usr/share/doc/open-xchange/examples/ contains new versions for proxy_ajp.conf and deflate.conf. These look like this:

    # AJP configuration for OX hosts

    <Location /axis2>
    # restrict access to the soap provisioning API
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
    # you might add more ip addresses / networks here
    # Allow from 192.168 10 172.16
    </Location>

    <IfModule mod_proxy_ajp.c>
    ProxyRequests Off
    ProxyStatus On
    <Proxy balancer://oxcluster>
    Order deny,allow
    Allow from all
    BalancerMember ajp://oxhost1:8009 smax=0 ttl=60 retry=60 loadfactor=50 route=OX1
    # Enable and maybe add additional hosts running OX here
    # BalancerMember ajp://oxhost2:8009 smax=0 ttl=60 retry=60 loadfactor=50 route=OX2
    ProxySet stickysession=JSESSIONID timeout=70
    </Proxy>
    <Proxy /ajax>
    ProxyPass balancer://oxcluster/ajax
    </Proxy>
    <Proxy /axis2>
    ProxyPass balancer://oxcluster/axis2
    </Proxy>
    <Proxy /servlet>
    ProxyPass balancer://oxcluster/servlet
    </Proxy>
    <Proxy /infostore>
    ProxyPass balancer://oxcluster/infostore
    </Proxy>
    <Proxy /publications>
    ProxyPass balancer://oxcluster/publications
    </Proxy>
    <Proxy /Microsoft-Server-ActiveSync>
    ProxyPass balancer://oxcluster/Microsoft-Server-ActiveSync
    </Proxy>
    <Proxy /usm-json>
    ProxyPass balancer://oxcluster/usm-json
    </Proxy>
    </IfModule>


    # deflate configuration

    <IfModule mod_deflate.c>

    DeflateFilterNote ratio
    LogFormat '%r %b (%{ratio}n) %{User-agent}i' deflate
    CustomLog /var/log/apache2/deflate.log deflate

    SetOutputFilter DEFLATE

    # Netscape 4.x has some problems...
    BrowserMatch ^Mozilla/4 gzip-only-text/html

    # Netscape 4.06-4.08 have some more problems
    BrowserMatch ^Mozilla/4\.0[678] no-gzip

    # MSIE masquerades as Netscape, but it is fine
    BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

    # Don't compress images
    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary

    # Make sure proxies don't deliver the wrong content
    Header append Vary User-Agent env=!dont-vary

    </IfModule>
Working...
X