1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
5 ServerAdmin webmaster@openstreetmap.org
7 CustomLog /var/log/apache2/<%= @name %>-access.log combined
8 ErrorLog /var/log/apache2/<%= @name %>-error.log
10 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
11 RedirectPermanent / https://<%= @name %>/
15 ServerName <%= @name %>
16 ServerAdmin webmaster@openstreetmap.org
19 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
20 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
22 CustomLog /var/log/apache2/<%= @name %>-access.log combined
23 ErrorLog /var/log/apache2/<%= @name %>-error.log
25 DocumentRoot <%= @directory %>
27 Alias /gitweb /usr/share/gitweb
28 Alias /git /var/cache/git
29 ScriptAlias /gitweb.cgi /usr/lib/cgi-bin/gitweb.cgi
32 RewriteRule ^/$ /gitweb.cgi%{REQUEST_URI} [L,PT]
33 RewriteRule ^/(.*\.git/(?!/?(HEAD|info|objects|refs)).*)?$ /gitweb.cgi%{REQUEST_URI} [L,PT]
36 <Directory <%= @directory %>>