Commit 50ce02f1 authored by mh's avatar mh
Browse files

domain might be different sometimes

parent 5bd6d339
...@@ -114,7 +114,11 @@ define webhosting::container( ...@@ -114,7 +114,11 @@ define webhosting::container(
if ('no_socket_forward' in $configuration) and $configuration['no_socket_forward'] { if ('no_socket_forward' in $configuration) and $configuration['no_socket_forward'] {
$options = "http://127.0.0.1:${port}" $options = "http://127.0.0.1:${port}"
} else { } else {
if $domain == 'absent' {
$options = "unix:/var/www/vhosts/${name}/tmp/run/${port}|http://${name}" $options = "unix:/var/www/vhosts/${name}/tmp/run/${port}|http://${name}"
} else {
$options = "unix:/var/www/vhosts/${name}/tmp/run/${port}|http://${domain}"
}
} }
apache::vhost::container{$name: apache::vhost::container{$name:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment