aboutsummaryrefslogtreecommitdiff
path: root/templates/apache/vhosts/cgit.erb
blob: d2d393d75cb8ce4a528bc4bead860ee282082e14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# begin vhost for cgit
<VirtualHost *:80>
  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
  <Directory /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]
  </Directory>

  ErrorLog  /var/log/apache2/cgit.openezx.org/error.log
  CustomLog  /var/log/apache2/cgit.openezx.org/access.log common
</VirtualHost>
# end vhost for git