diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-09-18 12:47:46 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-09-18 12:47:46 -0300 |
commit | 529cd5077e3d76c1d5b612bc146ab174d7143c30 (patch) | |
tree | da86fdf7c5e9fa6ebf752ffdd6515400057757a8 /templates/apache/vhosts/git.erb | |
download | debian-529cd5077e3d76c1d5b612bc146ab174d7143c30.tar.gz debian-529cd5077e3d76c1d5b612bc146ab174d7143c30.tar.bz2 |
Squashed 'puppet/' content from commit bb2eae6
git-subtree-dir: puppet
git-subtree-split: bb2eae6f3a1f44fef0a05000d79c298442fa24c7
Diffstat (limited to 'templates/apache/vhosts/git.erb')
-rw-r--r-- | templates/apache/vhosts/git.erb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/apache/vhosts/git.erb b/templates/apache/vhosts/git.erb new file mode 100644 index 0000000..25aecd1 --- /dev/null +++ b/templates/apache/vhosts/git.erb @@ -0,0 +1,20 @@ +# begin vhost for git +<VirtualHost *:80> + # Recipe based on http://josephspiros.com/2009/07/26/configuring-gitweb-for-apache-on-debian + + ServerName git.<%= domain %> + SetEnv GITWEB_CONFIG /etc/gitweb.conf + HeaderName HEADER + DocumentRoot /var/git/repositories + Alias /gitweb.css /usr/share/gitweb/gitweb.css + Alias /git-favicon.png /usr/share/gitweb/git-favicon.png + Alias /git-logo.png /usr/share/gitweb/git-logo.png + + ScriptAlias /gitweb /usr/lib/cgi-bin/gitweb.cgi + RewriteEngine on + + # Rewrite all other paths that aren't git repo internals to gitweb + RewriteRule ^/$ /gitweb [PT] + RewriteRule ^/(.*\.git/(?!/?(HEAD|info|objects|refs)).*)?$ /gitweb%{REQUEST_URI} [L,PT] +</VirtualHost> +# end vhost for git |