]> git.openstreetmap.org Git - chef.git/blob - cookbooks/blogs/templates/default/apache.erb
Add cookbook for blogs.openstreetmap.org
[chef.git] / cookbooks / blogs / 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    Redirect permanent / https://<%= @name %>/
11 </VirtualHost>
12
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    DocumentRoot <%= @directory %>
21    DirectoryIndex planet.html
22
23    SSLEngine on
24 </VirtualHost>
25
26 <Directory <%= @directory %>>
27    Require all granted
28 </Directory>