blob: 7238ebe37231af2cc6d5fc8a298d393927ff956e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<% unless ssl_mode.to_s == 'force' -%>
SetEnv GITWEB_CONFIG <%= gitweb_config %>
DirectoryIndex gitweb.cgi
<Directory "<%= documentroot %>/">
<% if options.to_s != 'absent' or 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>
<% end -%>
|