default => enclose_ipv6($listen_addr),
}
$vhost_listen = $_enclosed_addresses.map |$a| { "${a}:443" } . join(' ')
- $onion_hn = onion_tor_service_hostname('people.debian.org')
apache2::site { 'people.debian.org':
site => 'people.debian.org.conf',
content => template('roles/apache-people.debian.org.conf.erb'),
Use vhost-inner-people.debian.org
</VirtualHost>
+<% if scope.function_onion_global_service_hostname(['people.debian.org']) -%>
<VirtualHost *:80>
- ServerName <%= @onion_hn %>
+ ServerName <%= scope.function_onion_global_service_hostname(['people.debian.org']) %>
Use vhost-inner-people.debian.org
</VirtualHost>
-
+<% end -%>