From e62b2bd262f984e02e4ac5f801dbd80d81fc5b5e Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 20 Oct 2009 18:34:12 -0200 Subject: adding macros for apache mod_macro. --- templates/macros | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 templates/macros (limited to 'templates') diff --git a/templates/macros b/templates/macros new file mode 100644 index 0000000..e40bcd5 --- /dev/null +++ b/templates/macros @@ -0,0 +1,87 @@ + + # begin svn config + + 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. + + Require valid-user + + + # end svn config + + + + # begin drupal config + + Options Indexes Includes FollowSymLinks MultiViews + AllowOverride All + + # end drupal config + + + + # begin wiki config + + Options Indexes Includes FollowSymLinks MultiViews + AllowOverride All + + # end wiki config + + + + # begin site config + + Options Indexes Includes FollowSymLinks MultiViews + AllowOverride All + + # end site config + + + + # begin trac config + + 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 + + + + AuthType Basic + AuthName "Trac $site" + AuthUserFile /var/users/home/$site/trac/auth/.htpasswd + Require valid-user + + # end trac config + + + + # 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 + + + + # begin ikiwiki config + + Options Indexes Includes FollowSymLinks MultiViews ExecCGI + AllowOverride All + + # end ikiwiki config + -- cgit v1.2.3