Defined Type: apache::fastcgi::server

Defined in:
manifests/fastcgi/server.pp

Overview

Parameters:

  • host (Any) (defaults to: '127.0.0.1:9000')
  • timeout (Any) (defaults to: 15)
  • flush (Any) (defaults to: false)
  • faux_path (Any) (defaults to: "/var/www/${name}.fcgi")
  • fcgi_alias (Any) (defaults to: "/${name}.fcgi")
  • file_type (Any) (defaults to: 'application/x-httpd-php')
  • pass_header (Any) (defaults to: undef)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/fastcgi/server.pp', line 1

define apache::fastcgi::server (
  $host          = '127.0.0.1:9000',
  $timeout       = 15,
  $flush         = false,
  $faux_path     = "/var/www/${name}.fcgi",
  $fcgi_alias    = "/${name}.fcgi",
  $file_type     = 'application/x-httpd-php',
  $pass_header   = undef,
) {
  include apache::mod::fastcgi

  Apache::Mod['fastcgi'] -> Apache::Fastcgi::Server[$title]

  if is_absolute_path($host) {
    $socket = $host
  }

  file { "fastcgi-pool-${name}.conf":
    ensure  => present,
    path    => "${::apache::confd_dir}/fastcgi-pool-${name}.conf",
    owner   => 'root',
    group   => $::apache::params::root_group,
    mode    => $::apache::file_mode,
    content => template('apache/fastcgi/server.erb'),
    require => Exec["mkdir ${::apache::confd_dir}"],
    before  => File[$::apache::confd_dir],
    notify  => Class['apache::service'],
  }
}