]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hot/templates/default/apache.erb
Add simple redirect site for hot.osm.org
[chef.git] / cookbooks / hot / templates / default / apache.erb
diff --git a/cookbooks/hot/templates/default/apache.erb b/cookbooks/hot/templates/default/apache.erb
new file mode 100644 (file)
index 0000000..71682aa
--- /dev/null
@@ -0,0 +1,28 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+<VirtualHost *:80>
+   ServerName hot.openstreetmap.org
+   ServerAlias hot.osm.org
+   ServerAdmin webmaster@openstreetmap.org
+
+   CustomLog /var/log/apache2/hot.openstreetmap.org-access.log combined
+   ErrorLog /var/log/apache2/hot.openstreetmap.org-error.log
+
+   RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
+   RedirectPermanent / https://www.hotosm.org/
+</VirtualHost>
+
+<VirtualHost *:443>
+   ServerName hot.openstreetmap.org
+   ServerAlias hot.osm.org
+   ServerAdmin webmaster@openstreetmap.org
+
+   CustomLog /var/log/apache2/hot.openstreetmap.org-access.log combined
+   ErrorLog /var/log/apache2/hot.openstreetmap.org-error.log
+
+   SSLEngine on
+   SSLCertificateFile /etc/ssl/certs/hot.openstreetmap.org.pem
+   SSLCertificateKeyFile /etc/ssl/private/hot.openstreetmap.org.key
+
+   RedirectPermanent / https://www.hotosm.org/
+</VirtualHost>