summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/macros.erb44
1 files changed, 12 insertions, 32 deletions
diff --git a/templates/macros.erb b/templates/macros.erb
index 3b5f9e3..2c04117 100644
--- a/templates/macros.erb
+++ b/templates/macros.erb
@@ -37,54 +37,34 @@
# end wiki config
</Macro>
-<Macro Site $name>
- # begin site config
- <Directory <%= scope.lookupvar('apache::sites_folder') %>/$name/site>
+<Macro DirectoryAllowAll $name $folder>
+ # begin $name config
+ <Directory <%= scope.lookupvar('apache::sites_folder') %>/$name/$folder>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
- # end site config
+ # end $name config
+</Macro>
+
+<Macro Site $name>
+ Use DirectoryAllowAll $name site
</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
+ Use DirectoryAllowAll $name www
</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
+ Use DirectoryAllowAll $name web
</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
+ Use DirectoryAllowAll $name src
</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
+ Use DirectoryAllowAll $name html
</Macro>
<Macro Trac $site>