w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Customize default vhost in puppetlabs-apache

Yes, it is possible:

As seen in vhost recipe,

# Sample Usage:
#
# # Simple vhost definition:
# apache::vhost { 'site.name.fqdn':
# port => '80',
# docroot => '/path/to/docroot',
# }

Default vhost docroot is bounded to the OS, so if you want to run default host in some other directory, you should disable it using default_vhost => False in the apache declaration, and then declare a apache::vhost object with your desired conf

apache{
   default_vhost => false,
   ...
}

apache::vhost{'mydefaulthost':
   docroot => '/var/www/other',
   ...
}




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.