]> git.openstreetmap.org Git - chef.git/blob - cookbooks/civicrm/templates/default/apache.erb
civicrm: move aliases out to redirect to avoid session issues
[chef.git] / cookbooks / civicrm / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <% [80, 443].each do |port| -%>
4 <VirtualHost *:<%= port %>>
5
6   ServerName join.osmfoundation.org
7   ServerAlias crm.osmfoundation.org
8   ServerAlias supporting.osmfoundation.org
9   ServerAlias support.osmfoundation.org
10   ServerAlias support.openstreetmap.org
11   ServerAlias supporting.osm.org
12   ServerAlias support.osm.org
13
14   ServerAdmin webmaster@openstreetmap.org
15
16 <% if port == 80 -%>
17   RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
18   RedirectPermanent / https://supporting.openstreetmap.org/
19 <% end -%>
20 <% if port == 443 -%>
21   SSLEngine on
22   SSLCertificateFile /etc/ssl/certs/join.osmfoundation.org.pem
23   SSLCertificateKeyFile /etc/ssl/private/join.osmfoundation.org.key
24
25   RedirectMatch . https://supporting.openstreetmap.org/
26   <% end -%>
27
28   CustomLog /var/log/apache2/join.osmfoundation.org-access.log combined
29   ErrorLog /var/log/apache2/join.osmfoundation.org-error.log
30
31 </VirtualHost>
32
33 <% end -%>