summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@linux.ime.usp.br>2009-10-20 18:34:12 -0200
committerdrebs <drebs@linux.ime.usp.br>2009-10-20 18:34:12 -0200
commite62b2bd262f984e02e4ac5f801dbd80d81fc5b5e (patch)
treeda011500de1d90b8096d1aebc4ab661e4dd61418
parent71ded23b4e550fe15639479f1f95ecdc41e11db6 (diff)
downloadpuppet-apache-e62b2bd262f984e02e4ac5f801dbd80d81fc5b5e.tar.gz
puppet-apache-e62b2bd262f984e02e4ac5f801dbd80d81fc5b5e.tar.bz2
adding macros for apache mod_macro.
-rw-r--r--templates/macros87
1 files changed, 87 insertions, 0 deletions
diff --git a/templates/macros b/templates/macros
new file mode 100644
index 0000000..e40bcd5
--- /dev/null
+++ b/templates/macros
@@ -0,0 +1,87 @@
+<Macro Subversion $repos>
+ # begin svn config
+ <Location /$repos>
+ DAV svn
+ SVNPath /var/svn/$repos
+
+ AuthType Basic
+ AuthName "Subversion $repos"
+ AuthUserFile /var/svn/$repos/conf/htpasswd
+
+ # For any operations other than these, require an authenticated user.
+ <LimitExcept GET PROPFIND OPTIONS REPORT>
+ Require valid-user
+ </LimitExcept>
+ </Location>
+ # end svn config
+</Macro>
+
+<Macro Drupal $version>
+ # begin drupal config
+ <Directory /var/www/sarava/drupal-$version>
+ Options Indexes Includes FollowSymLinks MultiViews
+ AllowOverride All
+ </Directory>
+ # end drupal config
+</Macro>
+
+<Macro Wiki $site>
+ # begin wiki config
+ <Directory /var/users/home/$site/wiki>
+ Options Indexes Includes FollowSymLinks MultiViews
+ AllowOverride All
+ </Directory>
+ # end wiki config
+</Macro>
+
+<Macro Site $name>
+ # begin site config
+ <Directory /var/users/home/$name/site>
+ Options Indexes Includes FollowSymLinks MultiViews
+ AllowOverride All
+ </Directory>
+ # end site config
+</Macro>
+
+<Macro Trac $site>
+ # begin trac config
+ <Location "/trac">
+ SetHandler mod_python
+ PythonInterpreter main_interpreter
+ PythonHandler trac.web.modpython_frontend
+ PythonOption TracEnv /var/users/home/$site/trac
+ PythonOption TracUriRoot /trac
+
+ # This prevents strange behavior when using trac
+ # in the same virtual host with software that
+ # has rewrite rules in .htaccess, such as drupal
+ RewriteEngine off
+ </Location>
+
+ <Location "/trac/login">
+ AuthType Basic
+ AuthName "Trac $site"
+ AuthUserFile /var/users/home/$site/trac/auth/.htpasswd
+ Require valid-user
+ </Location>
+ # end trac config
+</Macro>
+
+<Macro Moin $site>
+ # begin moin config
+ Alias /moinroot /usr/share/moin/htdocs/
+ # TODO: fastcgi
+ ScriptAlias /moin "/var/users/home/$site/moin/cgi-bin/moin.cgi"
+ # end moin config
+ ScriptAlias /moin "/var/users/home/$site/moin/cgi-bin/moin.cgi"
+ # end moin config
+</Macro>
+
+<Macro Ikiwiki $name>
+ # begin ikiwiki config
+ <Directory /var/users/home/$name/ikiwiki>
+ Options Indexes Includes FollowSymLinks MultiViews ExecCGI
+ AllowOverride All
+ </Directory>
+ # end ikiwiki config
+</Macro>