blob: 2dd34ae8657b9975631a8d94061a5a385e662754 [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
######################################################################
#flags and options are:
#
# enable-gzip: default true, set true/false to enable/disable plugin for specific host
#
# remove-accept-encoding: this sets if the plugin should hide the accept encoding from origin servers
# - to ease the load on the origins
# - for when the proxy parses responses, and the resulting compression/decompression
# is wastefull
#
# cache: when set, the plugin stores the uncompressed and compressed response as alternates
#
# compressible-content-type: wildcard pattern for matching compressible content types
#
# disallow: wildcard pattern for disablign compression on urls
######################################################################
#first, we configure the default/global plugin behaviour
enabled true
remove-accept-encoding true
cache false
compressible-content-type text/*
compressible-content-type *javascript*
disallow /notthis/*.js
disallow /notthat*
disallow */bla*
#override the global configuration for a host.
#www.foo.nl does NOT inherit anything
[www.foo.nl]
enabled true
remove-accept-encoding true
compressible-content-type text/*
#disable a content type
compressible-content-type !text/javascript
cache false
disallow /notthis/*.js
disallow /notthat*