File: vhost_filter.pp

package info (click to toggle)
puppet-module-puppetlabs-apache 12.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,664 kB
  • sloc: ruby: 275; sh: 32; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 613 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Base class. Declares default vhost on port 80 with filters.
class { 'apache': }

# Example from README adapted.
apache::vhost { 'readme.example.net':
  docroot => '/var/www/html',
  filters => [
    'FilterDeclare   COMPRESS',
    'FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/html',
    'FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/css',
    'FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/plain',
    'FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/xml',
    'FilterChain     COMPRESS',
    'FilterProtocol  COMPRESS  DEFLATE change=yes;byteranges=no',
  ],
}