# == Class: php::apache # # Configures an apache vhost for php # # === Parameters # # [*vhost*] # The vhost address # # [*docroot*] # The vhost docroot # # [*port*] # The vhost port # # [*default_vhost*] # defines if vhost is the default vhost # # [*fastcgi_socket*] # address of the fastcgi socket # # === Authors # # Christian "Jippi" Winther # Robin Gloster # # === Copyright # # See LICENSE file # define php::apache_vhost( $vhost = 'example.com', $docroot = '/var/www', $port = 80, $default_vhost = true, $fastcgi_socket = 'fcgi://127.0.0.1:9000/$1' ) { apache::vhost { $vhost: docroot => $docroot, default_vhost => $default_vhost, port => $port, override => 'all', custom_fragment => "ProxyPassMatch ^/(.*\\.php(/.*)?)$ ${fastcgi_socket}", } }