1 # Base class. Declares default vhost on port 80 and default ssl
2 # vhost on port 443 listening on all interfaces and serving
6 # Example from README adapted.
7 apache::vhost { 'readme.example.net':
8 docroot => '/var/www/readme',
11 'path' => '/var/www/readme',
12 'ServerTokens' => 'prod' ,
15 'path' => '/usr/share/empty',
16 'allow' => 'from all',
22 apache::vhost { 'location.example.net':
23 docroot => '/var/www/location',
26 'path' => '/location',
27 'provider' => 'location',
28 'ServerTokens' => 'prod'
33 # files test, curedly disable access to accidental backup files.
34 apache::vhost { 'files.example.net':
35 docroot => '/var/www/files',
38 'path' => '(\.swp|\.bak|~)$',
39 'provider' => 'filesmatch',