]> git.openstreetmap.org Git - chef.git/blob - cookbooks/civicrm/templates/default/apache.erb
Use apt to install python geojson library
[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   RewriteEngine on
17
18 <% if port == 80 -%>
19   RewriteRule ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 [R=permanent,L]
20 <% end -%>
21 <% if port == 443 -%>
22   SSLEngine on
23   SSLCertificateFile /etc/ssl/certs/join.osmfoundation.org.pem
24   SSLCertificateKeyFile /etc/ssl/private/join.osmfoundation.org.key
25 <% end -%>
26
27   RewriteRule ^/(.*)$ https://supporting.openstreetmap.org/$1 [R=307,L]
28
29   CustomLog /var/log/apache2/join.osmfoundation.org-access.log combined_extended
30   ErrorLog /var/log/apache2/join.osmfoundation.org-error.log
31
32 </VirtualHost>
33
34 <% end -%>