CustomLog /var/log/apache2/<%= @name %>-access.log combined
ErrorLog /var/log/apache2/<%= @name %>-error.log
+ RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
RedirectPermanent / https://<%= @name %>/
</VirtualHost>
ServerName <%= @name %>
ServerAdmin webmaster@openstreetmap.org
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
+ SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
+
CustomLog /var/log/apache2/<%= @name %>-access.log combined
ErrorLog /var/log/apache2/<%= @name %>-error.log
AuthExternal osm
Require valid-user
</Location>
-
- SSLEngine on
</VirtualHost>
+
+<Directory <%= @directory %>/htdocs>
+ Require all granted
+</Directory>
+
+<Directory <%= @directory %>/cgi-bin>
+ Require all granted
+</Directory>