1 ## IP-based vhosts on any listen port
2 # IP-based vhosts respond to requests on specific IP addresses.
4 # Base class. Turn off the default vhosts; we will be declaring
7 default_vhost => false,
10 # Listen on port 80 and 81; required because the following vhosts
11 # are not declared with a port parameter.
12 apache::listen { '80': }
13 apache::listen { '81': }
16 apache::vhost { 'first.example.com':
18 docroot => '/var/www/first',
21 apache::vhost { 'second.example.com':
23 docroot => '/var/www/second',