Page MenuHomeSoftware Heritage

apache_vhost.pp
No OneTemporary

apache_vhost.pp

# 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
#
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}",
}
}

File Metadata

Mime Type
text/plain
Expires
Jul 4 2025, 6:45 PM (5 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3274561

Event Timeline