1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
5 ServerAdmin webmaster@openstreetmap.org
8 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
9 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
11 CustomLog /var/log/apache2/<%= @name %>-access.log combined
12 ErrorLog /var/log/apache2/<%= @name %>-error.log
14 DocumentRoot /usr/lib/cgi-bin/cgiirc
15 DirectoryIndex irc.cgi
16 Alias /images /usr/share/images/cgiirc
18 <Directory "/usr/lib/cgi-bin/cgiirc">
19 AddHandler cgi-script .cgi
23 <Directory "/usr/share/images/cgiirc">
27 <IfModule mod_deflate.c>
28 RemoveOutputFilter DEFLATE
32 <% unless @aliases.empty? -%>
35 ServerName <%= @aliases.first %>
36 <% @aliases.drop(1).each do |alias_name| -%>
37 ServerAlias <%= alias_name %>
39 ServerAdmin webmaster@openstreetmap.org
42 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
43 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
45 CustomLog /var/log/apache2/<%= @name %>-access.log combined
46 ErrorLog /var/log/apache2/<%= @name %>-error.log
48 RedirectPermanent / https://<%= @name %>/
53 ServerName <%= @name %>
54 <% @aliases.each do |alias_name| -%>
55 ServerAlias <%= alias_name %>
57 ServerAdmin webmaster@openstreetmap.org
59 CustomLog /var/log/apache2/<%= @name %>-access.log combined
60 ErrorLog /var/log/apache2/<%= @name %>-error.log
62 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
63 RedirectPermanent / https://<%= @name %>/