]> git.openstreetmap.org Git - chef.git/blob - cookbooks/ideditor/templates/default/apache.erb
Don't expire connection limit sets
[chef.git] / cookbooks / ideditor / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4   ServerName <%= @name %>
5   ServerAdmin webmaster@openstreetmap.org
6
7   CustomLog /var/log/apache2/<%= @name %>-access.log combined
8   ErrorLog /var/log/apache2/<%= @name %>-error.log
9
10   RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
11   Redirect permanent / https://<%= @name %>/
12 </VirtualHost>
13 <VirtualHost *:443>
14   ServerName <%= @name %>
15   ServerAdmin webmaster@openstreetmap.org
16
17   CustomLog /var/log/apache2/<%= @name %>-access.log combined
18   ErrorLog /var/log/apache2/<%= @name %>-error.log
19
20   SSLEngine on
21   SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
22   SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
23
24   RewriteEngine on
25   RewriteRule ^/release/?.* https://ideditor-release.netlify.app/ [QSD,L,R=307]
26   RewriteRule ^/?.* https://ideditor.netlify.app/ [QSD,L,R=307]
27 </VirtualHost>