]> git.openstreetmap.org Git - chef.git/commitdiff
Allow direct addressing of nominatim servers
authorTom Hughes <tom@compton.nu>
Tue, 10 Jun 2014 11:40:57 +0000 (12:40 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 10 Jun 2014 11:40:57 +0000 (12:40 +0100)
cookbooks/nominatim/templates/default/apache.erb

index c92e07325d4db9ba36a59275418dfc77e6eab1a0..9f3dcd34b9d314ff950b56161e73bbbd01ce80dd 100644 (file)
@@ -2,13 +2,14 @@
 
 <% [80, 443].each do |port| -%>
 <VirtualHost *:<%= port %>>
-    ServerName nominatim.openstreetmap.org
-    ServerAdmin webmaster@openstreetmap.org
+    ServerName <%= node[:fqdn] %>
+    ServerAlias nominatim.openstreetmap.org
     ServerAlias nominatim.osm.org
     ServerAlias nominatim.openstreetmap.org
     ServerAlias nominatim.openstreetmap.net
     ServerAlias nominatim.openstreetmaps.org
     ServerAlias nominatim.openmaps.org
+    ServerAdmin webmaster@openstreetmap.org
 
 <% if port == 443 -%>
     #