+<VirtualHost *:80>
+ # Basic server configuration
+ ServerName gps-tile.openstreetmap.org
+ ServerAlias *.gps-tile.openstreetmap.org
+ ServerAlias gps.tile.openstreetmap.org
+ ServerAlias gps-*.tile.openstreetmap.org
+ ServerAdmin webmaster@openstreetmap.org
+
+ # Enable rewriting
+ RewriteEngine On
+
+ # Redirect for ACME challenge validation
+ RewriteRule ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 [R=permanent,L]
+
+ # Redirect to https
+ RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=permanent,L]
+
+ # Setup logging
+ CustomLog /var/log/apache2/access.log combined
+ ErrorLog /var/log/apache2/error.log
+ BufferedLogs on
+</VirtualHost>
+