0b60cdd6a1
'apache' module is needed by 'horizon' 4.1.0 173967ab8dd21a93d6f2b47ff2641d0092f729b1 v 1.2.0 Fuel-CI: disable Partial blueprint: merge-openstack-puppet-modules Change-Id: I0f5ff2fafe058c0263c2ace4bc0ce8f7828d3be0
45 lines
984 B
Puppet
45 lines
984 B
Puppet
# Base class. Declares default vhost on port 80 and default ssl
|
|
# vhost on port 443 listening on all interfaces and serving
|
|
# $apache::docroot
|
|
class { 'apache': }
|
|
|
|
# Example from README adapted.
|
|
apache::vhost { 'readme.example.net':
|
|
docroot => '/var/www/readme',
|
|
directories => [
|
|
{
|
|
'path' => '/var/www/readme',
|
|
'ServerTokens' => 'prod' ,
|
|
},
|
|
{
|
|
'path' => '/usr/share/empty',
|
|
'allow' => 'from all',
|
|
},
|
|
],
|
|
}
|
|
|
|
# location test
|
|
apache::vhost { 'location.example.net':
|
|
docroot => '/var/www/location',
|
|
directories => [
|
|
{
|
|
'path' => '/location',
|
|
'provider' => 'location',
|
|
'ServerTokens' => 'prod'
|
|
},
|
|
],
|
|
}
|
|
|
|
# files test, curedly disable access to accidental backup files.
|
|
apache::vhost { 'files.example.net':
|
|
docroot => '/var/www/files',
|
|
directories => [
|
|
{
|
|
'path' => '(\.swp|\.bak|~)$',
|
|
'provider' => 'filesmatch',
|
|
'deny' => 'from all'
|
|
},
|
|
],
|
|
}
|
|
|