Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9348715
apache_vhost.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
725 B
Subscribers
None
apache_vhost.pp
View Options
# 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
Details
Attached
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
Attached To
R140 puppet-puppet-php
Event Timeline
Log In to Comment