summaryrefslogtreecommitdiff
path: root/templates/vhosts/gitweb/partial.erb
blob: c04f1c39ce0863c7feaa7c46d8a9bc32fa4d9daf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
    SetEnv GITWEB_CONFIG <%= gitweb_config %>
    DirectoryIndex gitweb.cgi
    <Directory "<%= documentroot %>/">
<% if options.to_s != 'absent' || do_includes.to_s == 'true'-%>
        Options <% unless options.to_s == 'absent' -%><%= options %><% end -%><% if do_includes.to_s == 'true' && !options.include?('+Includes') -%> +Includes<% end -%><% unless options.include?('+ExecCGI') -%> +ExecCGI<% end -%>
<% end -%>

        AddHandler cgi-script .cgi
        <Files gitweb.cgi>
              Options ExecCGI FollowSymLinks
              SetHandler cgi-script
        </Files>
        RewriteEngine on
        RewriteRule ^[a-zA-Z0-9_-]+.git/?(\?.)?$ /gitweb.cgi%{REQUESTURI} [L,PT]

<%= scope.function_template(['apache/vhosts/partials/authentication.erb']) %>
    </Directory>