From 67baef24fbbad2a0f1411ffd6fc6671942d95aa9 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 20 Jun 2015 13:41:53 -0300 Subject: Git and cgit vhosts --- templates/apache/vhosts/cgit.erb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 templates/apache/vhosts/cgit.erb (limited to 'templates/apache/vhosts/cgit.erb') diff --git a/templates/apache/vhosts/cgit.erb b/templates/apache/vhosts/cgit.erb new file mode 100644 index 0000000..d2d393d --- /dev/null +++ b/templates/apache/vhosts/cgit.erb @@ -0,0 +1,30 @@ +# begin vhost for cgit + + ServerName git.<%= domain %> + ServerAlias gitweb.<%= domain %> + + ServerSignature Off + + Alias /cgit.css /var/www/htdocs/cgit/cgit.css + Alias /cgit.png /var/www/htdocs/cgit/cgit.png + + ScriptAlias /cgi-bin/ /var/www/htdocs/cgit/ + + DocumentRoot /var/git/repositories + + AllowOverride None + Options +ExecCGI + Order allow,deny + Allow from all + + DirectoryIndex /cgi-bin/cgit.cgi + + RewriteEngine on + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^.*$ /cgi-bin/cgit.cgi/$0 [L,PT] + + + ErrorLog /var/log/apache2/cgit.openezx.org/error.log + CustomLog /var/log/apache2/cgit.openezx.org/access.log common + +# end vhost for git -- cgit v1.2.3