]> git.openstreetmap.org Git - chef.git/blob - cookbooks/git/templates/default/apache.erb
Remove arcfour (RC4) cipher no longer available in newer OpenSSH
[chef.git] / cookbooks / git / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4         ServerName <%= @name %>
5         ServerAdmin webmaster@openstreetmap.org
6
7         CustomLog /var/log/apache2/<%= @name %>-access.log combined
8         ErrorLog /var/log/apache2/<%= @name %>-error.log
9
10         RedirectPermanent / https://<%= @name %>/
11 </VirtualHost>
12
13 <VirtualHost *:443>
14         ServerName <%= @name %>
15         ServerAdmin webmaster@openstreetmap.org
16
17         SSLEngine on
18
19         CustomLog /var/log/apache2/<%= @name %>-access.log combined
20         ErrorLog /var/log/apache2/<%= @name %>-error.log
21
22         DocumentRoot <%= @directory %>
23         HeaderName HEADER
24         Alias /gitweb /usr/share/gitweb
25         Alias /git /var/cache/git
26         ScriptAlias /gitweb.cgi /usr/lib/cgi-bin/gitweb.cgi
27
28         RewriteEngine On
29         RewriteRule ^/$ /gitweb.cgi%{REQUEST_URI} [L,PT]
30         RewriteRule ^/(.*\.git/(?!/?(HEAD|info|objects|refs)).*)?$ /gitweb.cgi%{REQUEST_URI} [L,PT]
31 </VirtualHost>
32
33 <Directory <%= @directory %>>
34         Require all granted
35 </Directory>