summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/macros.erb40
1 files changed, 40 insertions, 0 deletions
diff --git a/templates/macros.erb b/templates/macros.erb
index 28038c0..3b5f9e3 100644
--- a/templates/macros.erb
+++ b/templates/macros.erb
@@ -47,6 +47,46 @@
# end site config
</Macro>
+<Macro Www $name>
+ # begin site config
+ <Directory <%= scope.lookupvar('apache::sites_folder') %>/$name/www>
+ Options Indexes Includes FollowSymLinks MultiViews
+ AllowOverride All
+ Require all granted
+ </Directory>
+ # end site config
+</Macro>
+
+<Macro Web $name>
+ # begin site config
+ <Directory <%= scope.lookupvar('apache::sites_folder') %>/$name/web>
+ Options Indexes Includes FollowSymLinks MultiViews
+ AllowOverride All
+ Require all granted
+ </Directory>
+ # end site config
+</Macro>
+
+<Macro Src $name>
+ # begin site config
+ <Directory <%= scope.lookupvar('apache::sites_folder') %>/$name/src>
+ Options Indexes Includes FollowSymLinks MultiViews
+ AllowOverride All
+ Require all granted
+ </Directory>
+ # end site config
+</Macro>
+
+<Macro Html $name>
+ # begin site config
+ <Directory <%= scope.lookupvar('apache::sites_folder') %>/$name/html>
+ Options Indexes Includes FollowSymLinks MultiViews
+ AllowOverride All
+ Require all granted
+ </Directory>
+ # end site config
+</Macro>
+
<Macro Trac $site>
# begin trac config
<Location "/trac">