summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-25 16:44:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-25 16:44:06 -0300
commit10a787b642395778fa75d73ca44bdf98ffec5b01 (patch)
tree2266671eea8274979cb38002553761117bf43560
parent2573ebe6cd25cc5ad6ee64f03dd08bb57c277dc8 (diff)
downloadpuppet-apache-10a787b642395778fa75d73ca44bdf98ffec5b01.tar.gz
puppet-apache-10a787b642395778fa75d73ca44bdf98ffec5b01.tar.bz2
User default host as a ServerAlias form the domain
-rw-r--r--templates/default.erb1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/default.erb b/templates/default.erb
index 08c3a87..0cc8996 100644
--- a/templates/default.erb
+++ b/templates/default.erb
@@ -1,6 +1,7 @@
# begin vhost for <%= @fqdn %>
<VirtualHost *:<%= scope.lookupvar('apache::http_port') %>>
ServerName <%= @fqdn %>
+ ServerAlias <%= @domain %>
DocumentRoot <%= scope.lookupvar('apache::default_folder') %>
# begin site config