blob: d1c6faf60c0c2ac7632ee306740447c62c402249 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
define proxmox::proxy_host (String[1] $target) {
file {"/etc/apache2/sites-enabled/$title.conf":
content => @("EOT")
MDomain $title
<VirtualHost *:443>
ServerName $title
SSLEngine on
ProxyPass "/" "$target"
ProxyPassReverse "/" "$target"
ProxyPreservehost On
SSLProxyEngine on
</VirtualHost>
| EOT
,
}
~>
Service['apache2']
}
|