Defined Type: apache::listen

Defined in:
manifests/listen.pp

Summary

Adds `Listen` directives to `ports.conf` that define the Apache server's or a virtual host's listening address and port.

Overview

The ‘apache::vhost` class uses this defined type, and titles take the form `<PORT>`, `<IPV4>:<PORT>`, or `<IPV6>:<PORT>`.



7
8
9
10
11
12
13
14
15
# File 'manifests/listen.pp', line 7

define apache::listen {
  $listen_addr_port = $name

  # Template uses: $listen_addr_port
  concat::fragment { "Listen ${listen_addr_port}":
    target  => $apache::ports_file,
    content => template('apache/listen.erb'),
  }
}