Defined Type: apache::namevirtualhost
- Defined in:
- manifests/namevirtualhost.pp
Summary
Enables name-based virtual hostsOverview
Adds all related directives to the ‘ports.conf` file in the Apache HTTPD configuration directory. Titles can take the forms `*`, `*:<PORT>`, `_default_:<PORT>`, `<IP>`, or `<IP>:<PORT>`.
7 8 9 10 11 12 13 14 15 |
# File 'manifests/namevirtualhost.pp', line 7
define apache::namevirtualhost {
$addr_port = $name
# Template uses: $addr_port
concat::fragment { "NameVirtualHost ${addr_port}":
target => $apache::ports_file,
content => epp('apache/namevirtualhost.epp', { 'addr_port' => $addr_port }),
}
}
|