# DO NOT EDIT - This file is being maintained by Chef
-<VirtualHost *:80>
+<% [80, 443].each do |port| -%>
+<VirtualHost *:<%= port %>>
ServerName nominatim.openstreetmap.org
ServerAdmin webmaster@openstreetmap.org
ServerAlias nominatim.osm.org
ServerAlias nominatim.openstreetmaps.org
ServerAlias nominatim.openmaps.org
+<% if port == 443 -%>
+ #
+ # Enable SSL
+ #
+ SSLEngine on
+<% end -%>
+
CustomLog /var/log/apache2/nominatim.openstreetmap.org-access.log combined
ErrorLog /var/log/apache2/nominatim.openstreetmap.org-error.log
RewriteRule ^/([sdr].*) /pool-${bulklist:%{REMOTE_ADDR}|www}/$1 [PT]
</VirtualHost>
+
+<% end -%>