# 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>