X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/358a53e82621db15b6043caf1c2400aee868651f..abdeb8abcc779ec996fd57f0fa4978dce4565a8f:/cookbooks/civicrm/templates/default/apache.erb diff --git a/cookbooks/civicrm/templates/default/apache.erb b/cookbooks/civicrm/templates/default/apache.erb new file mode 100644 index 000000000..dd6112f12 --- /dev/null +++ b/cookbooks/civicrm/templates/default/apache.erb @@ -0,0 +1,33 @@ +# DO NOT EDIT - This file is being maintained by Chef + +<% [80, 443].each do |port| -%> +> + + ServerName join.osmfoundation.org + ServerAlias crm.osmfoundation.org + ServerAlias supporting.osmfoundation.org + ServerAlias support.osmfoundation.org + ServerAlias support.openstreetmap.org + ServerAlias supporting.osm.org + ServerAlias support.osm.org + + ServerAdmin webmaster@openstreetmap.org + +<% if port == 80 -%> + RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/ + RedirectPermanent / https://supporting.openstreetmap.org/ +<% end -%> +<% if port == 443 -%> + SSLEngine on + SSLCertificateFile /etc/ssl/certs/join.osmfoundation.org.pem + SSLCertificateKeyFile /etc/ssl/private/join.osmfoundation.org.key + + RedirectMatch . https://supporting.openstreetmap.org/ + <% end -%> + + CustomLog /var/log/apache2/join.osmfoundation.org-access.log combined + ErrorLog /var/log/apache2/join.osmfoundation.org-error.log + + + +<% end -%>