From 92ab02215470aaf4100e582b0d628734156d7a65 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 3 Nov 2009 17:50:41 -0200 Subject: Adding website definition --- templates/macros.erb | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 templates/macros.erb (limited to 'templates/macros.erb') diff --git a/templates/macros.erb b/templates/macros.erb new file mode 100644 index 0000000..1a9d05c --- /dev/null +++ b/templates/macros.erb @@ -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 + /drupal-$version> + Options Indexes Includes FollowSymLinks MultiViews + AllowOverride All + + # end drupal config + + + + # begin wiki config + /$site/wiki> + Options Indexes Includes FollowSymLinks MultiViews + AllowOverride All + + # end wiki config + + + + # begin site config + /$name/site> + 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 <%= apache_sites_folder %>/$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 <%= apache_sites_folder %>/$site/trac/auth/.htpasswd + Require valid-user + + # end trac config + + + + # begin moin config + Alias /moinroot /usr/share/moin/htdocs/ + # TODO: fastcgi + ScriptAlias /moin "<%= apache_sites_folder %>/$site/moin/cgi-bin/moin.cgi" + # end moin config + ScriptAlias /moin "<%= apache_sites_folder %>/$site/moin/cgi-bin/moin.cgi" + # end moin config + + + + # begin ikiwiki config + /$name/ikiwiki> + Options Indexes Includes FollowSymLinks MultiViews ExecCGI + AllowOverride All + + # end ikiwiki config + -- cgit v1.2.3