Project

General

Profile

« Previous | Next » 

Revision 4c18f820

Added by Ivan Necas over 10 years ago

Update to librarian

View differences:

modules/apache/tests/vhost_directories.pp
apache::vhost { 'readme.example.net':
docroot => '/var/www/readme',
directories => [
{ path => '/var/www/readme', 'ServerTokens' => 'prod' },
{ path => '/usr/share/empty', 'allow' => 'from all' },
{
'path' => '/var/www/readme',
'ServerTokens' => 'prod' ,
},
{
'path' => '/usr/share/empty',
'allow' => 'from all',
},
],
}
......
apache::vhost { 'location.example.net':
docroot => '/var/www/location',
directories => [
{ path => '/location', 'provider' => 'location', 'ServerTokens' => 'prod' },
{
'path' => '/location',
'provider' => 'location',
'ServerTokens' => 'prod'
},
],
}
......
apache::vhost { 'files.example.net':
docroot => '/var/www/files',
directories => [
{ path => '~ (\.swp|\.bak|~)$', 'provider' => 'files', 'deny' => 'from all' },
{
'path' => '(\.swp|\.bak|~)$',
'provider' => 'filesmatch',
'deny' => 'from all'
},
],
}

Also available in: Unified diff