Mercurial > repos > other > Puppet
view modules/apache/examples/vhost_directories.pp @ 320:99e3ca448d55
Fix Remi PHP on CentOS 8
It uses the new "modules" approach, so we need to use a new
package provider
They also use different signing keys
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 01 Mar 2020 10:58:00 +0000 |
parents | 675c1cc61eaf |
children | b8d6ada284dd |
line wrap: on
line source
# 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' }, ], }