group "root"
end
+ssl_certificate "stateofthemap.org" do
+ domains ["stateofthemap.org", "www.stateofthemap.org",
+ "stateofthemap.com", "www.stateofthemap.com"]
+ notifies :reload, "service[apache2]"
+end
+
apache_site "stateofthemap.org" do
template "apache.erb"
directory "/srv/stateofthemap.org"
CustomLog /var/log/apache2/stateofthemap.org-access.log combined
ErrorLog /var/log/apache2/stateofthemap.org-error.log
+ RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
RedirectPermanent / https://stateofthemap.org/
</VirtualHost>
ErrorLog /var/log/apache2/stateofthemap.org-error.log
SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/stateofthemap.org.pem
+ SSLCertificateKeyFile /etc/ssl/private/stateofthemap.org.key
RedirectPermanent / https://stateofthemap.org/
</VirtualHost>
ErrorLog /var/log/apache2/stateofthemap.org-error.log
SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/stateofthemap.org.pem
+ SSLCertificateKeyFile /etc/ssl/private/stateofthemap.org.key
DocumentRoot /srv/stateofthemap.org/html
</VirtualHost>